Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions trumpsweeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ var Game = function(boardSize, totalMines){
$htmlloc.text(numOfMinesText);
if(this.clickedCells == this.maxClearCells){
console.log("hello from the last clicked cell with a mine near it");
this.isGameOver == true;
this.isGameOver = true;
}
} else {
$htmlloc.addClass("no-mine");
if(this.clickedCells == this.maxClearCells){
console.log("hello from the last clicked cell without a mine near it");
this.isGameOver == true;
this.isGameOver = true;
}
}

Expand Down Expand Up @@ -208,4 +208,4 @@ $(document).ready(function(){
}
});
});
});
});