This is a basic text adventure I wrote. If there any issues you find issues, let me know.

Code:
ClrHome
0->S
Disp "For the purpose
Disp "of this program,"
Pause
Disp "1 will be used "
Disp "for Yes, and 2 "
Disp "for No aditional"
Disp "commands are "
Disp "look 3)Search 4)"
Disp "and show help 5)"
Pause
ClrHome
Disp "You are at a door"
While S=0
Disp "Will you try to"
Disp "open?"
Disp "Or something else"
Prompt A
If A=1
Then
Disp "You try to open"
Disp "it"
Pause
Disp "but it is locked."
Pause
Disp "unlock with 6"
C->1
Pause
End
If A=2
Then
Disp "You stand there"
Disp "and do nothing"
Pause
End
If A=3
Then
Disp "There is a"
Disp "potted plant"
Disp "next to the door"
1->P
End
If A=4
Then
If P=1
Disp "There is a key in"
Disp "the pot"
Pause
Disp "4.087"
End
If A=5
Then
Disp "1 Yes, 2 No,"
Disp "3 Look, 4 Search"
Disp "5 Commands"
Pause
End
If A=6
Then
If C=1
Prompt K
If K=4.087
S->1
End
ClrHome
End
Pause
Disp "You unlock the"
Disp "The door"
Welcome to Cemetech! It looks nice! I'm assuming that this is for the TI-84+CE?
jcgter777 wrote:
Welcome to Cemetech! It looks nice! I'm assuming that this is for the TI-84+CE?

Honestly if you just look at the code, it is quite a simple program and it appears it could run on monochrome or color calculators. It does look like there are 2 or 3 Disp commands with 17 characters in them, which would exceed the home screen width of 16 on the 83+ and 84+, but that is a small issue.
Michael2_3B wrote:
jcgter777 wrote:
Welcome to Cemetech! It looks nice! I'm assuming that this is for the TI-84+CE?

Honestly if you just look at the code, it is quite a simple program and it appears it could run on monochrome or color calculators. It does look like there are 2 or 3 Disp commands with 17 characters in them, which would exceed the home screen width of 16 on the 83+ and 84+, but that is a small issue.


I don't know many who would write display commands that they know would go off the screen, so I'd assume it was for the CE.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement