Nim game: Difference between revisions
→{{header|Craft Basic}}
Basicgames (talk | contribs) |
|||
Line 1,136:
<syntaxhighlight lang="basic">title "NIM"
let h = int: (rnd) * 12 + 12
label loop
Line 1,149:
endif
alert "Congratulations. You got the last token."▼
end▼
▲ alert "Congratulations. You got the last token."
endif▼
▲ end
let t = 4 - t▼
let h = h - t
alert "I got the last token. I win. Better luck next time."▼
▲ if h = 0 then
end▼
endif
▲ alert "I got the last token. I win. Better luck next time."
▲ end
endif
|