Anonymous user
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
* 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
=={{header|Ada}}==
|