well, when this thread hit, i went to make one just for the heck of it:
p = 0 : c = 0 : t = 0
x = screen width()/2 : y = screen height()/2
do
cls
print "Current Score: ",p," vs ",c," Tie Games: ",t," Total Games: ",(p+c+t)
print
print "choose your weapon! "
print "1) Rock"
print "2) Paper"
print "3) Scissors"
input ">",weapon
if weapon = 1 then gosub _rock
if weapon = 2 then gosub _paper
if weapon = 3 then gosub _scissors
sync
wait key
loop
_rock:
randomize timer() : comp = rnd(2)
if comp = 0 then center text x,y, "ROCK vs ROCK! It's a TIE!" : inc t
if comp = 1 then center text x,y, "ROCK vs PAPER! You LOSE!" : inc c
if comp = 2 then center text x,y, "ROCK vs SCISSORS! YOU WIN!" : inc p
return
_paper:
randomize timer() : comp = rnd(2)
if comp = 0 then center text x,y, "PAPER vs ROCK! YOU WIN!" : inc p
if comp = 1 then center text x,y, "PAPER vs PAPER! It's a TIE!" : inc t
if comp = 2 then center text x,y, "PAPER vs SCISSORS! You LOSE!" : inc c
return
_scissors:
randomize timer() : comp = rnd(2)
if comp = 0 then center text x,y, "SCISSORS vs ROCK! YOU LOSE!" : inc c
if comp = 1 then center text x,y, "SCISSORS vs PAPER! YOU WIN!" : inc p
if comp = 2 then center text x,y, "SCISSORS vs SCISSORS! It's a TIE!" : inc t
return
it's another approach. nearly the same amount of code as Daemon's. point is, learn from both sets of code, as well as the fact that there are different approaches to a situation when coding. good luck
Athlon XP1800+, Windows XP+SP2, Soyo K7V Dragon+ MB, 1.5Gb 333 RAM, ATI Radeon 8700LT (128Mb)
Drivers and Updates Kept Current