Table of Contents

Rock-Paper-Scissors

A digital version of the Rock-Paper-Scissors version allowing you to play against each other or against the computer.

To program this example you need to use the buttons, the matrix, variables, logic, and math.

Programming

You can program the game progressively. For each step, add the displayed blocks and put them in the right order. You can then test your program by clicking on .

Step 1: Showing a number when a button is pressed



Step 2: Showing a random number when a button is pressed



Step 3: Showing different images for the numbers 1, 2, and 3

Instead of writing the number in value to the matrix, you will now say to Kniwwelino: « If the number in value is equal to 1, then show an image (e.g. a rock). If it is equal to 2, then show another image (e.g. a paper). If it is equal to 3, then show a third image (e.g. scissors).».





Solution

Solution: Rock Paper Scissors or open in KniwwelinoBlockly

Print versions available for download in Downloads and Links.

Crafting