More doc fixes (#511)

* more doc fixes

* more fixes
This commit is contained in:
Peli de Halleux
2017-08-18 11:02:21 -07:00
committed by GitHub
parent c9e8cd4e78
commit 4f57c77b30
8 changed files with 140 additions and 127 deletions

View File

@ -161,26 +161,25 @@ Headband Charades Complete Program (simple version - no time limit or scoring):
let index = 0
let arrayWords: string[] = []
input.onGesture(Gesture.ScreenUp, () => {
   basic.showString(arrayWords[index])
basic.showString(arrayWords[index])
})
input.onGesture(Gesture.ScreenDown, () => {
   led.stopAnimation()
   basic.clearScreen()
   if (index < arrayWords.length - 1) {
       index += 1
   } else {
       game.gameOver()
   }
led.stopAnimation()
basic.clearScreen()
if (index < arrayWords.length - 1) {
index += 1
} else {
game.gameOver()
}
})
arrayWords = ["cat", "guitar", "flashlight", "cupcake", "tree", "frisbee"]
index = 0
basic.showLeds(`
   . # # # .
   . . . # .
   . . # # .
   . . . . .
   . . # . .
   `)
. # # # .
. . . # .
. . # # .
. . . . .
. . # . .`)
basic.pause(100)
basic.showNumber(3)
basic.pause(100)