Rock-paper-scissors: Difference between revisions

m
(computer, operator and opponent)
Line 235:
end.
smoutput ' I choose ',choice {::;:'. Rock Paper Scissors'
smoutput (rwintype=. 3 | choice-playerchoice) {:: 'Draw';'I win';'You win'
outcomes=. outcomes+0 1 2 = rwintype
rps=. rps+1 2 3=playerchoice
choice=. 1+3|(?0) I.~ (}:%{:)+/\ 0, rps
Line 265:
My wins: 4
Your wins: 1</lang>
 
 
=={{header|Java}}==
6,962

edits