Minibots
Home

Code rock paper scissors

Map three random values to distinct icons.

Build or compare

Generate 0 to 2 on shake and use if/else branches to show rock, paper or scissors.

Test the result

Temporarily force each value to test every branch before restoring randomness.

Related resources