The Worst Number-Guessing Game Ever

Write a program that plays an incredibly stupid number-guessing game. The user will get one try to guess the secret number. Tell them if they got it right or wrong, and if they got it wrong, display what the secret number was.

You must store the secret number in a variable. Changing the "correct" answer should only require changing it in one place.

I know it will be the same number every time the game is played.

TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!

I"M THKING OF A NBR FROM 1-10.  TRY 2 GESS! 3

W00T!  U SUX0R!!!  I PWN J00!!!  IT WAS 4!

 

TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!

I"M THKING OF A NBR FROM 1-10.  TRY 2 GESS! 4

LOL!!! U GOT IT!  I CANT BELEIVE U GESSED IT WAS 4!

 

TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!

I"M THKING OF A NBR FROM 1-10.  TRY 2 GESS! 4

LOL!!! U GOT IT!  I CANT BELEIVE U GESSED IT WAS 4!

 

TEH WORST NUBMER GESSING GAME EVAR!!!!!!!1!

I"M THKING OF A NBR FROM 1-10.  TRY 2 GESS! 4

LOL!!! U GOT IT!  I CANT BELEIVE U GESSED IT WAS 4!

/me walks away shaking his head....

Common Student Questions

Do I have to copy your stupid language?
No. I'm just being weird.



©2003–2016 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License