Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
Fixed typos in console messages
  • Loading branch information
leonar15 authored Dec 23, 2018
1 parent 5443df2 commit d530cb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/memesweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ $(function(){

if (this_val != 'd') {
// generate a board that has a doge at the first click
console.log('regenerating board for scumbag mode');
while (this_val != 'd') {
console.log('regenrating scumbag');
Game.calculate_positions();
// find the new value
this_val = Game.Square.get_value(this_pos.x, this_pos.y);
Expand All @@ -222,8 +222,8 @@ $(function(){

} else if (this_val == 'd') {
// keep trying to make a board where this square isn't a meme
console.log('regenerating board to avoid initial collision');
while (this_val == 'd') {
console.log('regenrating');
Game.calculate_positions();
// find the new value
this_val = Game.Square.get_value(this_pos.x, this_pos.y);
Expand Down Expand Up @@ -387,4 +387,4 @@ $(function(){
Game.init($game_box, options);
}

});
});

0 comments on commit d530cb7

Please sign in to comment.