For my final project, I wanted to make the game that I played a lot in my childhood. The Rock paper scissors game!
This is a hand played game usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are rock (a closed fist), paper(a flat hand), and scissors.
Rules are like this;
Rock beats scissors
Scissors beats paper
Paper beats rock
This game is created by teachable machine, which is a web-based tool that makes creating machine learning models. First of all I’ve gathered and group my examples into classes that I want the computer to learn, in this case these were; rock, scissors and paper classes. Then I trained my model, then instantly test it out to see whether it can correctly classify new examples. Lately, after exporting my model for my project I downloaded it and added to my code in p5.js. My models runs well %70, but sometimes it can be confused with the hand gesture of rock and scissors.
You can reach the code below;
https://editor.p5js.org/bestesaylar/sketches/rjZRp_WNa
https://editor.p5js.org/bestesaylar/full/rjZRp_WNa