Rock-paper-scissors: Difference between revisions

wordliness and task
(J)
(wordliness and task)
Line 1:
{{draft task}}In this task, the goal is to implement the classic children's game [[wp:Rock-paper-scissors|Rock-paper-scissors]], as well as a simple predictive AI player.
 
Rock Paper Scissors hasis a two playersplayer game. Each player chooses one of rock, paper or scissors, without knowing the other player's choice. The winner is decided by a set of rules:
 
* Rock beats scissors
Line 9:
If both players choose the same thing, there is no winner for that round.
 
== Task ==
For this task's AI player, keep track of the player's choice frequency, and use that choice frequency to make a [[Probabilistic choice|weighted random choice]] to beat the player's likely choice.
 
For this task's, AIthe playercomputer will be one of the players. The opponent will select Rock, Paper or Scissors and the computer will keep tracka record of the player's choice frequency, and use that choice frequencyinformation to make a [[Probabilistic choice|weighted random choice]] to beatin thean player'sattempt likelyto choicedefeat the player.
 
=={{header|Ada}}==