TI-BASIC:Simon Says

From Learn @ Cemetech
Jump to navigationJump to search

Simon Says is a simple game where you are given a pattern that must repeat, and the pattern gets longer and longer which subsequently increases the difficulty. This version of the game is played on the home screen, and is quite small (approximately 214 bytes). You use the respective number keys to type the matching number. Like with the other games, try to understand the code and experiment with it.

The Code

:DelVar L₁"?→Str1
:Repeat Ans
:If Ans≠L₁(J:Goto Q
:Lbl Q
:Pause "YOU "+sub("LOSE!WIN! ",1+5(I=17),5

The Download

In case you want to try the program on your calculator, you can download the program in .8xp format.