Project: Two-Player Rock-Paper-Scissors

This project pits two remote players against each other, each using a SPIKE Prime to play Rock-Paper-Scissors

Player 1 Interface

To use the SPIKE™ Prime hardware, you must enable the WebSerial API in your browser. To do so, please make sure:

To enable these flags:
  1. In your Browser URL, visit chrome://flags
  2. Set the your required flags to "Enabled" via dropdown
  3. Relaunch the browser to have changes take effect
  4. Revisit this page and activate the SPIKE™ Prime Service Dock (top right)

Remember to activate your SPIKE Prime. (And: Motor on Port A, Force Sensor on Port B)

Pick Your Throw:

Use Motor (Port A) to select and use Force Sensor (Port B) to confirm.

RockPaperScissors

Show your SPIKE Prime to your opponent, and wait for them to also throw.

And the result is...


Return back to the main Hello SPIKE project listing.

Project and Documentation created by Tufts Center for Engineering Education and Outreach:



For more information about Tufts CEEO, please visit: http://ceeo.tufts.edu

For other experimental projects from Tufts CEEO: CEEO Innovations


LEGO®, the LEGO® logo, the Brick, MINDSTORMS®, SPIKE™, and the Minifigure are trademarks of ©The LEGO® Group. All other trademarks and copyrights are the property of their respective owners. All rights reserved.

This page isn’t affiliated, authorized, or endorsed by The LEGO Group.