Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Nim-game/EasyLang/nim-game.easy
Normal file
15
Task/Nim-game/EasyLang/nim-game.easy
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue