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.
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
.
Kniwwelino loop forever:value ». Add the following blocks to your program:value on the matrix ». Remove the 1 and replace it with value:
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: Rock Paper Scissors or open in KniwwelinoBlockly
Print versions available for download in Downloads and Links.