Rock-paper-scissors: Difference between revisions

Content added Content deleted
(→‎{{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: 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.
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}}==
=={{header|Ada}}==