batch replace onButtonPressed(Button...

This commit is contained in:
Peli de Halleux
2016-03-29 21:17:57 -07:00
parent 1f7e0b0f79
commit 850c313c5d
68 changed files with 187 additions and 187 deletions

View File

@ -28,7 +28,7 @@ basic.showLeds(`
. . # . .
. . # . .
`, 400)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
})
```
@ -42,7 +42,7 @@ basic.showLeds(`
. . # . .
. . # . .
`, 400)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
})
```
@ -57,7 +57,7 @@ basic.showLeds(`
. . # . .
. . # . .
`, 400)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random1 = Math.random(2)
if (random1 == 0) {
basic.showString("TRUTH", 150)
@ -79,7 +79,7 @@ basic.showLeds(`
. . # . .
. . # . .
`, 400)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random2 = Math.random(2)
if (random2 == 0) {
basic.showString("TRUTH", 150)

View File

@ -18,7 +18,7 @@ basic.plotImage(`
. . # . .
. . # . .
`)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random = Math.random(2)
if (random == 0) {
basic.showString("TRUTH", 150)
@ -47,7 +47,7 @@ basic.plotImage(`
. . # . .
. . # . .
`)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random1 = Math.random(3) // ***
if (random1 == 0) {
basic.showString("TRUTH", 150)
@ -76,7 +76,7 @@ basic.plotImage(`
. . # . .
. . # . .
`)
input.onButtonPressed("A", () => {
input.onButtonPressed(Button.A, () => {
let random2 = Math.random(3)
if (random2 == 0) {
basic.showString("TRUTH", 150) // ***