Re: TIB: help with Extreemly basic AI..


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

Re: TIB: help with Extreemly basic AI..




Well, you got one problem I can see so far...
You have a variable "K" that is not assigned a value.
It might help to assign it something to think about,
and put the assignment at the start.
BTW, make the varable equal to zero.

--- Jesse McInturff <jmcintur@bevcomm.net> wrote:
> 
> 
> 
> ----------
> >From: ETTamme1@aol.com
> >To: ti-basic@lists.ticalc.org
> >Subject: Re: TIB: help with Extreemly basic AI..
> >Date: Wed, Oct 27, 1999, 4:42 PM
> >
> 
> >
> >     No problem, let me know hoe it turns out.
> >
> >         ~Eric
> >
> 
> ahhhh, now all i get is a domain error, please help
> 
> ClrHome
> 2A
> 1B
> 2C
> 4D
> 8I
> 4J
> 
> While K=0
> 
> Output(A,B,"["
> Output(C,D,"]"
> Output(I,J,"°"
> 
> DelVar E
> While E=0
> getKeyE
> End
> 
> If E=24
> Then
> ClrHome
> B-1B
> D-1D
> End
> 
> If E=26
> Then
> ClrHome
> B+1B
> D+1D
> End
> 
> If E=25
> Then
> ClrHome
> A-1A
> C-1C
> End
> 
> If E=34
> Then
> ClrHome
> A+1A
> C+1C
> End
> 
> 
> If E=21
> B+1E
> DelVar F
> While F‚5
> Output(A,E,"*"
> F+1F
> End
> 
> If A=I and E=J
> Then
> Output(4,5,"YOU WIN"
> Pause
> Stop
> End
> ClrHome
> 
> randInt(1,4,1)E
> If E=1
> Then
> I+1I
> End
> 
> If E=2
> Then
> I-1I
> End
> 
> If E=3
> Then
> J+1J
> End
> 
> If E=4
> Then
> J-1J
> End
> 
> 
> End
> 
> 


=====
Whatever really happens when worlds collide
Now this is what its like
Whatever happens when worlds collide
Now this is what its like

-When Worlds COlide (Powerman 5000)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com