Discuss Scratch
- Discussion Forums
- » Show and Tell
- » Rock paper scissors AI
- 30goldendonkey
-
Scratcher
39 posts
Rock paper scissors AI
This is an AI that plays rock paper scissors. If you play rock paper scissors with it, in the long term, you will lose more than you win.
How it works: It records all your previous moves in a list. Then it counts the amount of appearance of each move after move (such as rock after rock, paper after rock, scissors after rock, rock after paper, etc). Then, it looks through that and calculates which move you will probably do next given your last move. Then it will play the move that beats it.
Here is the link:
https://scratch.mit.edu/projects/1022677316/
How it works: It records all your previous moves in a list. Then it counts the amount of appearance of each move after move (such as rock after rock, paper after rock, scissors after rock, rock after paper, etc). Then, it looks through that and calculates which move you will probably do next given your last move. Then it will play the move that beats it.
Here is the link:
https://scratch.mit.edu/projects/1022677316/
Last edited by 30goldendonkey (May 19, 2024 15:13:41)
- Discussion Forums
- » Show and Tell
-
» Rock paper scissors AI

