game.js
/* Return true if there are no more moves left.
 */
Return true if there are no more moves left.
Return true if there are no more moves left .
function isdone(game) {
    for (let y = 0; y < game.height; y++)
        for (let x = 0; x < game.width; x++)
            if (mark(game, x, y))
                return false;
    return true;
}
function isdone ( game ) { for ( let y = 0 ; y < game . height ; y ++ ) for ( let x = 0 ; x < game . width ; x ++ ) if ( mark ( game , x , y ) ) return false ; return true ; }
Return true if there are no more moves left.
Return true if there are no more moves left .