Skip to content

Commit 713189d

Browse files
committed
Fix typos in snake game curricula
1 parent 790fd61 commit 713189d

13 files changed

+17
-17
lines changed

sites/en/javascript-snake-game/js/lesson-10.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var advanceGame = function() {
3939
snake = moveSnake(snake);
4040
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
4141
CHUNK.endGame();
42-
CHUNK.flashMessage("Woops! you hit a wall!");
42+
CHUNK.flashMessage("Whoops! you hit a wall!");
4343
}
4444
drawSnake(snake);
4545
}

sites/en/javascript-snake-game/js/lesson-11.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var advanceGame = function() {
3636
snake = moveSnake(snake);
3737
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
3838
CHUNK.endGame();
39-
CHUNK.flashMessage("Woops! you hit a wall!");
39+
CHUNK.flashMessage("Whoops! you hit a wall!");
4040
}
4141
draw(snake, apple);
4242
}

sites/en/javascript-snake-game/js/lesson-12.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var advanceGame = function() {
4747
}
4848
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
4949
CHUNK.endGame();
50-
CHUNK.flashMessage("Woops! you hit a wall!");
50+
CHUNK.flashMessage("Whoops! you hit a wall!");
5151
}
5252
draw(snake, apple);
5353
}

sites/en/javascript-snake-game/js/lesson-13.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var advanceGame = function() {
4949

5050
if (ate(newSnake, snake)) {
5151
CHUNK.endGame();
52-
CHUNK.flashMessage("Woops! You ate yourself!");
52+
CHUNK.flashMessage("Whoops! You ate yourself!");
5353
}
5454

5555
if (ate(newSnake, [apple])) {
@@ -59,7 +59,7 @@ var advanceGame = function() {
5959

6060
if (ate(newSnake, CHUNK.gameBoundaries())) {
6161
CHUNK.endGame();
62-
CHUNK.flashMessage("Woops! you hit a wall!");
62+
CHUNK.flashMessage("Whoops! you hit a wall!");
6363
}
6464

6565
snake = newSnake;

sites/en/javascript-snake-game/js/lesson-8.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var advanceGame = function() {
3131
snake = moveSnake(snake);
3232
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
3333
CHUNK.endGame();
34-
CHUNK.flashMessage("Woops! you hit a wall!");
34+
CHUNK.flashMessage("Whoops! you hit a wall!");
3535
}
3636
drawSnake(snake);
3737
}

sites/en/javascript-snake-game/js/lesson-9.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var advanceGame = function() {
3434
snake = moveSnake(snake);
3535
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
3636
CHUNK.endGame();
37-
CHUNK.flashMessage("Woops! you hit a wall!");
37+
CHUNK.flashMessage("Whoops! you hit a wall!");
3838
}
3939
drawSnake(snake);
4040
}

sites/en/javascript-snake-game/js/snake.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var advanceGame = function() {
5151

5252
if (ate(newSnake, snake)) {
5353
CHUNK.endGame();
54-
return CHUNK.flashMessage("Woops! You ate yourself!");
54+
return CHUNK.flashMessage("Whoops! You ate yourself!");
5555
}
5656
// Now we just have to check if the newSnake ate it's previous self to see if
5757
// there was a collision!
@@ -63,7 +63,7 @@ var advanceGame = function() {
6363

6464
if (ate(newSnake, CHUNK.gameBoundaries())) {
6565
CHUNK.endGame();
66-
return CHUNK.flashMessage("Woops! you hit a wall!");
66+
return CHUNK.flashMessage("Whoops! you hit a wall!");
6767
}
6868

6969
snake = newSnake;

sites/en/javascript-snake-game/lesson-10.step

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
markdown <<-MARKDOWN
44
To make the tail follow the head, we're going to assign the direction of the
5-
segment furher forward in snake to the current segment when it moves. This way
5+
segment further forward in snake to the current segment when it moves. This way
66
all segments follow the same path!
77

88
Let's define a new function called `segmentFurtherDown` which takes a

sites/en/javascript-snake-game/lesson-11.step

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ markdown <<-MARKDOWN
2222
snake = moveSnake(snake);
2323
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
2424
CHUNK.endGame();
25-
CHUNK.flashMessage("Woops! you hit a wall!");
25+
CHUNK.flashMessage("Whoops! you hit a wall!");
2626
}
2727
draw(snake, apple);
2828
}

sites/en/javascript-snake-game/lesson-12.step

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ markdown <<-MARKDOWN
3030
}
3131
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
3232
CHUNK.endGame();
33-
CHUNK.flashMessage("Woops! you hit a wall!");
33+
CHUNK.flashMessage("Whoops! you hit a wall!");
3434
}
3535
draw(snake, apple);
3636
}

sites/en/javascript-snake-game/lesson-13.step

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ markdown <<-MARKDOWN
2020

2121
if (ate(newSnake, snake)) {
2222
CHUNK.endGame();
23-
CHUNK.flashMessage("Woops! You ate yourself!");
23+
CHUNK.flashMessage("Whoops! You ate yourself!");
2424
}
2525

2626
if (ate(newSnake, [apple])) {
@@ -30,15 +30,15 @@ markdown <<-MARKDOWN
3030

3131
if (ate(newSnake, CHUNK.gameBoundaries())) {
3232
CHUNK.endGame();
33-
CHUNK.flashMessage("Woops! you hit a wall!");
33+
CHUNK.flashMessage("Whoops! you hit a wall!");
3434
}
3535

3636
snake = newSnake;
3737
draw(snake, apple);
3838
}
3939
```
4040

41-
Notice, we've abstracted out the `ate` function by resuing it. It can now determine if the snake ate itself, an apple or the wall.
41+
Notice, we've abstracted out the `ate` function by reusing it. It can now determine if the snake ate itself, an apple or the wall.
4242

4343
If your snake no longer moves after this step, make sure that you assigned `snake = newSnake` in the `advanceGame` function.
4444
MARKDOWN

sites/en/javascript-snake-game/lesson-5.step

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ markdown <<-MARKDOWN
1414
}
1515
```
1616

17-
To get this function running we'll use our CHUNK game engine to CALL the `executeNTimesPerSecond` function. It does exactly that, to do this `executeNTimesPerSecond` takes in two arguments. The first arugement advances the game, and the second tells it how many times to move per-second.
17+
To get this function running we'll use our CHUNK game engine to CALL the `executeNTimesPerSecond` function. It does exactly that, to do this `executeNTimesPerSecond` takes in two arguments. The first argument advances the game, and the second tells it how many times to move per-second.
1818

1919
```js
2020
CHUNK.executeNTimesPerSecond(advanceGame, 1);

sites/en/javascript-snake-game/lesson-8.step

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ markdown <<-MARKDOWN
1212
snake = moveSnake(snake);
1313
if (CHUNK.detectCollisionBetween(snake, CHUNK.gameBoundaries())) {
1414
CHUNK.endGame();
15-
CHUNK.flashMessage("Woops! you hit a wall!");
15+
CHUNK.flashMessage("Whoops! you hit a wall!");
1616
}
1717
drawSnake(snake);
1818
}

0 commit comments

Comments
 (0)