8 Replies - 1958 Views - Last Post: 06 May 2012 - 02:47 AM Rate Topic: -----

#1 digitaldevelopment  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 168
  • Joined: 30-April 12

TI-BASIC, easy and yet he FAILS!

Posted 04 May 2012 - 12:41 PM

TI-BASIC, for those wo don't know it; it's a language to program your TI84 or 83 calculators. it is an easy language, and so I was suprised to see someone having the guts to paste a code on youtube containing this many failts:
(if you would like to know more about this language, you can ask me or my good friend google
ClrHome
Lbl A
ClrHome
Menu(" SNAKE","PLAYThisShit",1)
Lbl T
Pause 
Goto A
Lbl 1
AxesOff
FnOff 
0L
0Xmin
94Xmax
0Ymax
62Ymin
ClrDraw
50Q
Lbl C
ClrDraw
Horizontal 0
Vertical 0
Horizontal 62
Vertical 94
For(X,0,Q)
Pxl-On(randInt(1,62),randInt(1,93)
End
26R
48B
32A
Repeat pxl-Test(Ans,B)/>
Pxl-On(Ans,B)/>
L+1L
getKey
If Ans:AnsR
B-(R=24)+(R=26)B
A-(R=25)+(R=34)A
End
ClrHome
Output(1,1,"GAME OVER")
Output(4,1,"YOU SUCK...OR")
Output(8,1,"CAUGHT BYTEACHER")
Pause 
ClrHome
Output(1,1,"****************")
Output(8,1,"----------------")
Output(4,4,"SCORE:")
Output(4,10,L)
Pause 
Goto A
ClrDraw
Lbl E
AxesOn
ClrDraw
ZStandard
ClrHome
Stop


Is This A Good Question/Topic? 0
  • +

Replies To: TI-BASIC, easy and yet he FAILS!

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9214
  • View blog
  • Posts: 34,612
  • Joined: 12-June 08

Re: TI-BASIC, easy and yet he FAILS!

Posted 04 May 2012 - 12:42 PM

This.. is your code?
Was This Post Helpful? 0
  • +
  • -

#3 digitaldevelopment  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 168
  • Joined: 30-April 12

Re: TI-BASIC, easy and yet he FAILS!

Posted 04 May 2012 - 12:45 PM

View Postmodi123_1, on 04 May 2012 - 08:42 PM, said:

This.. is your code?

no, why you ask?
the code is from this youtube video
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9214
  • View blog
  • Posts: 34,612
  • Joined: 12-June 08

Re: TI-BASIC, easy and yet he FAILS!

Posted 04 May 2012 - 12:51 PM

Oh it wasn't clear if it was your code or another person's. Side statement - it might make a more dramatic impact if you explain, quickly, what constitutes a fault to those who are not hip on their TI syntax.
Was This Post Helpful? 0
  • +
  • -

#5 digitaldevelopment  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 168
  • Joined: 30-April 12

Re: TI-BASIC, easy and yet he FAILS!

Posted 05 May 2012 - 01:07 AM

sure, my apologies for not doing so directly :stupid:
the fault, or better said faults are the following:
to begin with he uses characters that TI-basic doesn't understand, the graphical interface (after fixing the unknown characters) is nearly 0, and well the game doesn't even do what it is supposed to do (supposing one fixes it after spending a lot of time on it). the only piece of code that really does what it had to do was the core part:
getKey
34
If Ans:AnsR
35
B-(R=24)+(R=26)B
36
A-(R=25)+(R=34)A
37
End


(where we assume the u with to dots is a -> which means store a value in a variable in TI-basic)
Was This Post Helpful? 0
  • +
  • -

#6 wrightm96  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 51
  • Joined: 06-March 12

Re: TI-BASIC, easy and yet he FAILS!

Posted 05 May 2012 - 09:40 PM

...just wow. I've written some crazy TI-BASIC programs, and NEVER have I ever done something like that...That's horrible.

How do you even put the 'u' with two dots in on the calculator? I've never seen it...
Was This Post Helpful? 0
  • +
  • -

#7 DimitriV  Icon User is offline

  • They don't think it be like it is, but it do
  • member icon

Reputation: 584
  • View blog
  • Posts: 2,738
  • Joined: 24-July 11

Re: TI-BASIC, easy and yet he FAILS!

Posted 05 May 2012 - 09:45 PM

The is a character not used in English, u-umlaut. It is used a lot in German.
Was This Post Helpful? 0
  • +
  • -

#8 wrightm96  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 51
  • Joined: 06-March 12

Re: TI-BASIC, easy and yet he FAILS!

Posted 05 May 2012 - 09:58 PM

And even weirder: On a TI-83, 83+, 83+ SE or the 84 models, the commands are built in...you just select them, and it displays them for you. After watching the video, the code is all correct. No mistakes in the video's code....so...I don't know where you got that code, but it's not the same as the video.
Was This Post Helpful? 0
  • +
  • -

#9 digitaldevelopment  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 168
  • Joined: 30-April 12

Re: TI-BASIC, easy and yet he FAILS!

Posted 06 May 2012 - 02:47 AM

View Postwrightm96, on 06 May 2012 - 05:58 AM, said:

And even weirder: On a TI-83, 83+, 83+ SE or the 84 models, the commands are built in...you just select them, and it displays them for you. After watching the video, the code is all correct. No mistakes in the video's code....so...I don't know where you got that code, but it's not the same as the video.

well you might wanna take a look at the comments below, and have you tested the code out? it's GUI is horrible. I think I am going to type over my version of the program to compare with this one
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1