Rock-paper-scissors: Difference between revisions
→{{header|Ring}}
No edit summary |
|||
Line 4,137:
# Email : <calmosoft@gmail.com>
see "
"
g = ["rock","paper","scissors"]
total=0 draw=0
pwin=0 cwin=0▼
▲pwin=0
see "what is your move (press r, p, or s)?"
while true
Line 4,159 ⟶ 4,158:
total = total + 1
see"you chose " + g[gs] + " and i chose " + g[c] + nl
if temp = 0
see ". it's a draw"
draw = draw + 1
ok
if
see ". you win!"
pwin = pwin + 1
ok
if
see ". i win!"
cwin = cwin + 1
ok
end
</lang>
Output:
|