Codey Rocky Rock Paper Scissor


#1

I’m trying to code Codey to play a rock paper scissor game when it is shaken. I can’t seem to make it work. I’ve tried several variations. Here is the most basic one I’ve attempted and it only produces one result. But will not repeat. Whether I use a repeat, forever or create a variable. Any ideas??


#2

So, could it be like this??


#3

@Crackel beat me to it! :grin:
Here’s my version @chonito

yet another version with random values of 1-3…

Note that the first “show image” is really redundant.


#4

I shared it as “PaperRockScissor”


#5

I explored several variants of playing the ‘Rock, Paper, Scissors’ game using mBot with my grandaughter a few years ago. It’s quite a good way to explore mBlock5 programing techniques. These experiments are all documented in my free to download book ‘mBot&Me - vol I’ from Makeblock Education. You can find the .pdf file at: https://education.makeblock.com/resources/res-mbot/56549/


#6

Thank YOU!


#7

Thank You!


#8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.