Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Ti Basic: Pick A Number
KansukeKojima
post Apr 14 2008, 09:21 PM
Post #1


Privileged Member
*********

Group: [HOSTED]
Posts: 525
Joined: 13-October 06
From: Alberta, Canada
Member No.: 31,584



Description

Learn how to create a neat-o Game in TI Basic. Its basic premise is that someone picks a number, then they pass the calculator to their friend, and they try to guess the number. Once the successfully guess the number a message appears and says that they have won. I have also included a line that keeps users from choosing numbers greater than one-hundred.

Please Enjoy.

Try I Out

Alright.... just input what you see below and I'll explain it a little below.

CODE
:ClrHome
:Lbl 2
:Prompt A
:A->X
:If X>100
:Goto 2
:ClrHome
:Lbl 1
:Prompt B
:B->Y
:ClrHome
:If X=Y:Output(2,1,"YOU WIN")
:If X≠Y
:Goto 1


O.k. so basically:
1. Asks the user 1 for a number
2. Ask the user 2 to guess the number
3. If user does not guess number correctly: guess again
If user does guess number correctly: Message says they win.

Have fun!

Command List (while in program mode):

Clrhome - press the PRGRM key, go to the I/O heading, select No. 8.
Lbl - press the PRGRM Key, select No. 9
Prompt - press the PRGRM Key, under I/O heading, select No. 2
> - press '2nd' key and press the math key, then select No. 3
Goto - press the PGRM key, then select No. 0
Output - press the PGRM key, under I/O heading, select No. 6
'=' and '≠' - press '2nd' key and press the math key, then select them respectively.
Go to the top of the page
 
+Quote Post
minimcmonkey
post Jun 25 2008, 06:11 PM
Post #2


Advanced Member
*******

Group: Members
Posts: 126
Joined: 19-June 08
From: United Kingdom - Cornwall!!!!!
Member No.: 63,876



Hmmm. i think most people would get bored of that game fairl fast. but its a good wayof understanding the basics of the language fast...

cool thread!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Need Help With My Python Programs(11)
  2. [tutorial] Visual Basic 6(2)
  3. [tutorial] Visual Basic 6 Minimize To Tray(4)
  4. Any Have Rune Pick? [runescap](5)
  5. Poll Here:do You Love,hate,like, Dragon Ball Z?(44)
  6. Simple Login In Visual Basic 6(6)
  7. Java Basic Program Guidance(6)
  8. Visual Basic 6.0 Help Needed(13)
  9. How To Make A Web Browser(48)
  10. Need Help With C Program To Test If A Number Is Prime(12)
  11. Simple C File Handling In Action(3)
  12. Creating A Timer Program(8)
  13. Google A Number?(44)
  14. Free Guitar Pick!(8)
  15. Worst Pick-up Lines(32)
  1. Learn Russian(7)
  2. Mysql In Visual Basic(5)
  3. Help! Php Or Just Html?(13)
  4. Photoshop Tut: Basic Text (video)(0)
  5. Some Basic But Important Info About Cancer(3)
  6. Ti-basic --- Slot Machine(9)
  7. Aob Blood Grouping(1)
  8. A Twist On Basic Authentification(1)
  9. Buliding A Basic Community Site(2)
  10. Get Pan Number Online(0)
  11. Knicks Trade Rumors(0)
  12. Basic Of Website Creation(6)
  13. Making A Simple Signature With Adobe Photoshop(3)


 



- Lo-Fi Version Time is now: 27th July 2008 - 02:35 AM