21 game: Difference between revisions
m
→{{header|EasyLang}}
(→{{header|rust}}: =={{header|rust}}== ---> =={{header|Rust}}==) |
|||
Line 2,695:
=={{header|EasyLang}}==
The computer plays optimally
<syntaxhighlight
print "Who reaches 21, wins"
print "Do you want to begin (y/n)"
who = 1
Line 2,714 ⟶ 2,715:
sleep 1
if sum mod 4 = 1
n =
else
n = 4 - (sum + 3) mod 4
Line 2,731 ⟶ 2,732:
print "Sorry, you lost"
.
.
=={{header|Factor}}==
|