updated RPS

This commit is contained in:
Peli de Halleux 2018-10-22 14:05:39 -07:00
parent 3d52ed44e6
commit c35eb66f29
5 changed files with 1 additions and 15 deletions

View File

@ -45,21 +45,7 @@ Place an ``||logic:if||`` block under the ``||math:pick random||`` and check whe
Add a ``||basic:show leds||`` block that shows a picture of a piece of paper. The number `1` will mean paper.
```blocks
let hand = 0;
input.onGesture(Gesture.Shake, () => {
hand = Math.randomRange(1, 3)
if (hand == 1) {
basic.showLeds(`
# # # # #
# . . . #
# . . . #
# . . . #
# # # # #
`)
}
})
```
![How to drag an if statement](/static/mb/projects/rock-paper-scissors/if.gif)
## Step 5 @fullscreen

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 234 KiB