[TIB] Re: TI-83 Basic Stumper


[Prev][Next][Index][Thread]

[TIB] Re: TI-83 Basic Stumper





Here are my two cents (we're getting rich :) )

> 
> "That shouldn't be a problem"?!?  You perhaps expect dialogue
> like the following...
> 
>   (Player: Hit the orc!)
>   YOU HIT THE ORC.
>   (Player: Get the gold!)
>   LA LA LA LA... SCROLL...
>   YOU GET THE 85   GP.
>   (Player: Quit!)

Eehm, yes? What did you have in mind then?

> --You wrote:
> > Date: Sun, 25 Aug 2002 15:10:30 +0200 (MEST)
> >
> > Otherwise, Romman's idea (with my improvement) is probably best.
> > Your [Robert's] trick with the regression is very original, but IMHO not
> practical.
> >
> > Rob van Wijk
> 
> I agree that Robert Mohr's trick is very original, and not terribly
> practical in a production game, but I re-iterate that IT SEEMS TO BE
> THE ONLY CORRECT SOLUTION SUBMITTED THUS FAR.  (I don't really "get"
> the Omnicalc idea, but it sounds like it involves including a big

Do you happen to use an 83-? Omnicalc is an application, that's a special
type of assembly program that runs straight from flash rom, so it will only
work on calcs that have that flash rom (duh), in this case the 83+ / 83+SE.
There is no easy way to use this function on a standard 83, so let's just
forget about it.

> library with every game, which is also fairly impractical in an
> industry populated mostly by grade-school students and involving
> 27K memories.)  I repeat, ROBERT'S IDEA WORKS!  NOBODY ELSE'S DOES!

Yes, it works, however, it is SLOW. Calculating regressions is not as fast
as just adding a bunch of numbers. Especially if you're gonna use a lot
of numbers, this will slow the game down noticeably.
The only "problem" I see with Romman's solution is the extra space, but
I fail to see how a quick, short piece of code with one slight imperfection
would be worse then a rather slow, long piece of code, that uses a score
of extra variables.

> Therefore, it's the only solution that I would consider a candidate
> for inclusion in a good Basic program.
> 
> Robert's code, again, looks basically like this:
>   {0,1->L1:{0,G->L2
>   LinReg(ax+b) L1,L2,Y1
>   Equ>String(Y1,Str1
>   sub(Str1,1,length(Str1)-3)->Str1
>   Disp "YOU GET THE "+Str1+" GP."
> 
> Please consider my objections to the Disp and Output tricks BEFORE
> submitting any more variations on them!  Thanks...

Could you please tell exactly what your problem with our solutions is,
because I'm not sure I get it.

> 
> -Arthur
> 

Rob van Wijk

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net




References: