Rock, Paper, Scissors with Cozmo

Train your computer to play Rock, Paper, Scissors with you, and have Cozmo cheer you on! Make Cozmo react to the moves you make. For more information on connecting to Cozmo through Cognimates, check out the Cozmo extension page for more information.

Download the project and launch Cognimates!

Have you implemented a Rock, Paper, Scissors with Cozmo activity? Have feedback to share? Questions about how to get started? Get in touch!

Here is a tutorial to get you started:

  • Step 1: Load the simple version of Rock Paper Scissors with Cozmo. This project uses the Vision extension, which you can use to train a model and recognize images, and the Cozmo extension, which lets you program Cozmo. It's an adapted version of our Rock, Paper, Scissors project, this time with Cozmo!

  • Step 2: Click the green flag to connect to Cozmo and hold your hand up to the webcam to play rock, paper, scissors with your computer! Press the space bar and wait for the 'pop' sound.

  • Step 3: Your computer will take a picture, attempt to recognize what move you played, and compare it to a move that the computer randomly chose.

  • Step 4: Once your move has been made, your code will make the hand on the right change to rock, paper, or scissor depending on which one the computer think you played. Cozmo will also say the move.

  • Step 5: Cozmo's also going to react your result. If you won, it'll do a happy dance. If you lost, it'll look upset. Try adding an expression for Cozmo when the game is tied!

  • Step 6: If the computer was wrong and didn't recognize the correct hand that you played, you can train the model to become better. Check out steps 5-9 in the original Rock, Paper, Scissors project on how to send your answers to the model!

  • Step 7: If you want to create and train your own rock, paper, scissors model, head over to our training page and create a vision training model!

Rock, Paper, Scissors with Cozmo at a Glance