RosettaCodeData/Task/Nim-game/EasyLang/nim-game.easy
2023-07-01 13:44:08 -04:00

15 lines
381 B
Text

token = 12
while token > 0
repeat
print "There are " & token & " tokens remaining."
write "How many would you like to take? (1,2 or 3) "
h = number input
print h
until h >= 1 and h <= 3
.
sleep 1
print "On my turn I will take " & 4 - h & " token(s)."
print ""
token -= 4
.
print "I got the last token. I win! Better luck next time."