get explosions() {
        /* Get global variables. */
        var field = this.field;
        var veil = this.veil;
        var width = this.width;
        var height = this.height;
        
        var count = 0;
        for (var x = 0; x < width; x++) {
            for (var y = 0; y < width; y++) {
                if (!veil[x][y] && field[x][y] == 'x')
                    count++;
            }
        }
        
        return count;
    }
/* Return the number of explosions until now. */
Return the number of explosions until now.
Return the number of explosions until now .
get explosions() {
        var field = this.field;
        var veil = this.veil;
        var width = this.width;
        var height = this.height;
        var count = 0;
        for (var x = 0; x < width; x++) {
            for (var y = 0; y < width; y++) {
                if (!veil[x][y] && field[x][y] == 'x')
                    count++;
            }
        }
        return count;
    }
get explosions ( ) { var field = this . field ; var veil = this . veil ; var width = this . width ; var height = this . height ; var count = 0 ; for ( var x = 0 ; x < width ; x ++ ) { for ( var y = 0 ; y < width ; y ++ ) { if ( ! veil [ x ] [ y ] && field [ x ] [ y ] == 'x' ) count ++ ; } } return count ; }
Return the number of explosions until now.
Return the number of explosions until now .
/* Get global variables. */