module/src/battleship-game.js
/**
     * The default rules for a battleship game.
     * @property {BattleshipRules}
     * @readonly
     */
The default rules for a battleship game.
The default rules for a battleship game .
static get DEFAULT_RULES() {
        return {
            grid: [10, 10],
            ships: [
                Matrix.rectangle(1, 5), 
                Matrix.rectangle(1, 4), 
                Matrix.rectangle(1, 4), 
            ]
        };
    }
static get DEFAULT_RULES ( ) { return { grid : [ 10 , 10 ] , ships : [ Matrix . rectangle ( 1 , 5 ) , Matrix . rectangle ( 1 , 4 ) , Matrix . rectangle ( 1 , 4 ) , ] } ; }
The default rules for a battleship game.
The default rules for a battleship game .
// Aircraft carrier // Battleship a // Battleship b