bluefruit___ble_microbit-network-book-rock-paper-scissors-threecharacterrules-hires-43.jpg
The rules of rock, paper, scissors from Nominet's Networking With The micro:bit, copyright Nominet.

Rules

To play the game:

  • Each of the two players make an independent decision and reveal that to each other simultaneously.
  • The rules to determine the winner are shown in the diagram above. If the two players make the same choice then the game is a draw (tie).

More than Two Players

The game is normally a two-player game but can be extended to multiple players by simply using the player's choice against each opponent. The diagram above can also serve to demonstrate how a three player game works, with each arrow representing a game:

  • green player (scissors)
    • win vs blue,
    • lose vs red;
  • blue player (paper),
    • win vs red,
    • lose vs green;
  • red player (rock),
    • win vs green,
    • lose vs blue.

Flow Diagram

The flowchart below shows a high-level view of a multi-round game. This broadly matches the Advanced game, although the final implementation deviates from this playing games indefinitely.

bluefruit___ble_general-rpsgame-main-flowchart-v3.png
Simplified flow diagram for the Advanced rock, player, scissors game.

The next pages discuss some aspects of the design of the different versions of the game. These include the user interface (UI), how the TFT Gizmo on a Circuit Playground Bluefruit can be detected, how the players' choices are exchanged between multiple devices and how the scores are presented at the end of each game.

This guide was first published on Sep 02, 2020. It was last updated on Sep 02, 2020.

This page (Design) was last updated on Jan 25, 2021.