Big Game: A Guessing Game
A compilation of everything we've learned so far
 HOME >> Tutorials >> Big Game: A Guessing Game

Introduction:
Finally, we've gotten to our first game, a guessing game. I was debating whether or not I should give you the whole code. I decided that I wouldn't, but start you off and tell you what the program is supposed to do. This is the only way to test if you have really understood everything so far in this tutorial. If you can make this program work, you can consider yourself a true programmer.

What This Program Has To Do:

• It has to be able to pick a random number between 1 and 100 that the user is going to guess
• It has to be able to record the number of tries (user variable T) it took for the user to guess the number
• When the user inputs a guess, it has to say whether the actual number is higher or lower
• When the user finally gets the number right, it's supposed to tell them
• It should also be able to keep a High Score. If you don't know how to keep a High Score correctly, you better click here
• At the end it should ask if they want to play again

Let me give you one more hint. The game uses all the major commands we've learned except for the For loop. If you feel comfortable enough, you can add any other stuff, but to prove that you have learned everything in this first set of tutorials, you must do what I've asked. I didn't put any part of the High Score function, because you have to add that where you think it should go. And here we are:

The Codes:

 : For AShell, SOS, and TI-Explorer ClrHome Clears the home screen DelVar A:DelVar B Lbl 1 0T T stands for tries Repeat A=B T+1T The number of tries goes up each time it repeats The rest is up to you!!!!

Conclusion:
I hope you were able to make the program work. There are probably many ways of making the program do the same thing. Plus, you might add things that you want, like an opening screen. I have a far more advanced guessing game (it has a lot more features) and if you would like to download it, . If you just can't figure out a certain part (or a whole part) of the guessing game program, or you have succeeded in making one, we can compare programs. I will check my mail every day; probably more than once a day. Once I get your email, I will try to respond as quickly as possible with the best help that I can give.

On To Version 2.0:
Do you feel like you've mastered this entire lesson? Do you feel that you are ready to go on to Intermediate BASIC programming? If so, go to the Overview of v2.0. If you're not feeling to comfortable with your programming skills, review the first 11 tutorials or contact me.

If you do not understand a particular part in this lesson, have suggestions, or find any problems please contact me.