TGC Codebase Backup



Gambling Points by Anonymous Coder

16th Apr 2005 5:17
Summary

This is a gambling game, you must choose a number between 1 and 10 if your choice is a correct you get 10 points if your choice is wrong you loose 10 points.



Description



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    points=100
a=10
do
x=rnd(10)
input "choose a number bewteen 1 and 10  ",choose
print "you chose  ",choose,"  and the computer chooses  ",x
print "you now have  ",points,"  left in your account"
if choose=x then points=points+a else points=points-a
loop