Jump to content

Rock-paper-scissors: Difference between revisions

m
Added the extra weapons extra credit. Discussed in the talk page and people seem to be OK with implementing it.
(→‎{{header|C}}: Second example looks incorrect)
m (Added the extra weapons extra credit. Discussed in the talk page and people seem to be OK with implementing it.)
Line 11:
For this task, the computer will be one of the players. The operator will select Rock, Paper or Scissors and the computer will keep a record of the choice frequency, and use that information to make a [[Probabilistic choice|weighted random choice]] in an attempt to defeat its opponent.
 
'''Extra credit:''' easy support for [[wp:Rock-paper-scissors#Additional_weapons|additional weapons]].
=={{header|Ada}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.