function checkGameOver() {
    // @CR: watch out for these 3 vars, they all do the same thing and you only use 1 of them
    GAMEOVER = true;
    gGame.isWin = false;
    gGame.isOn = false;
    stop()

    //open the board 
    for (var i = 0; i < gLevel.SIZE; i++) {
        for (var j = 0; j < gLevel.SIZE; j++) {
            gBoard[i][j].isShown = true;
        }
    }
    alert("Game over!");

}
// Game ends when all mines are marked, and all the other cells are shown
Game ends when all mines are marked, and all the other cells are shown
Game ends when all mines are marked and all the other cells are shown
function checkGameOver() {
    GAMEOVER = true;
    gGame.isWin = false;
    gGame.isOn = false;
    stop()
    for (var i = 0; i < gLevel.SIZE; i++) {
        for (var j = 0; j < gLevel.SIZE; j++) {
            gBoard[i][j].isShown = true;
        }
    }
    alert("Game over!");
}
function checkGameOver ( ) { GAMEOVER = true ; gGame . isWin = false ; gGame . isOn = false ; stop ( ) for ( var i = 0 ; i < gLevel . SIZE ; i ++ ) { for ( var j = 0 ; j < gLevel . SIZE ; j ++ ) { gBoard [ i ] [ j ] . isShown = true ; } } alert ( "Game over!" ) ; }
Game ends when all mines are marked, and all the other cells are shown
Game ends when all mines are marked and all the other cells are shown
// @CR: watch out for these 3 vars, they all do the same thing and you only use 1 of them //open the board 