Nim game: Difference between revisions
Content added Content deleted
Basicgames (talk | contribs) |
|||
Line 1,136: | Line 1,136: | ||
<syntaxhighlight lang="basic">title "NIM" |
<syntaxhighlight lang="basic">title "NIM" |
||
let h = 12 |
let h = int: (rnd) * 12 + 12 |
||
label loop |
label loop |
||
Line 1,149: | Line 1,149: | ||
endif |
endif |
||
if t <= 3 and t >= 1 then |
|||
let h = h - t |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
print "I will take ", t ," tokens." |
|||
let h = h - t |
|||
if h = 0 then |
|||
⚫ | |||
⚫ | |||
⚫ | |||
endif |
|||
⚫ | |||
⚫ | |||
endif |
endif |