21 game: Difference between revisions

m
(→‎{{header|rust}}: =={{header|rust}}== ---> =={{header|Rust}}==)
 
Line 2,695:
=={{header|EasyLang}}==
The computer plays optimally
<syntaxhighlight lang="text">print "Who reaches 21, wins"
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 = randomrandint 3
else
n = 4 - (sum + 3) mod 4
Line 2,731 ⟶ 2,732:
print "Sorry, you lost"
.
.
.</syntaxhighlight>
 
=={{header|Factor}}==
1,977

edits