Update tests. remove converted test for the time being

This commit is contained in:
Sam El-Husseini
2018-04-21 10:45:02 -07:00
parent ff892dbcb4
commit 6ac64f0e3d
11 changed files with 36 additions and 32 deletions

View File

@ -197,7 +197,7 @@ function playLevel(level1: number) {
led.plot(2 * i, 2)
}
basic.pause(1000)
correctBall = Math.random(3)
correctBall = Math.randomInt(3)
revealBall(correctBall)
basic.pause(1000)
let swaps = 5 + 10 * level1
@ -209,17 +209,17 @@ function playLevel(level1: number) {
swapSpeed = 20
}
for (let i1 = 0; i1 < swaps; i1++) {
let swapType = Math.random(3)
let not = Math.random(3)
let swapType = Math.randomInt(3)
let not = Math.randomInt(3)
if (swapType < 2) {
let swapOrientation = Math.random(2)
let swapOrientation = Math.randomInt(2)
if (swapOrientation == 0) {
swapCups((not + 1) % 3, (not + 2) % 3, swapSpeed)
} else {
swapCups((not + 2) % 3, (not + 1) % 3, swapSpeed)
}
} else {
let swapOrientation1 = Math.random(2)
let swapOrientation1 = Math.randomInt(2)
if (swapOrientation1 == 0) {
swapFake((not + 1) % 3, (not + 2) % 3, swapSpeed)
} else {