From Learn @ Cemetech
Jump to navigationJump to search

Chase is a simple game where the goal is to chase down the randomly moving target. To make the game more difficult, the old locations of the target are not erased, which makes the target harder to find. This game is small in size and just uses a few real variables. Like with the other games, try out the game and try to understand and think through the code.

The Code

:Repeat A=C and B=Ans
:If Ans=22:Stop
:If Ans:Output(A,B,"  // 1 space
:Pause "FOUND IT!

The Download

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