module/src/battleship-game.js
/**
     * Moves the game into placement phase if currently in the starting phase.
     */
Moves the game into placement phase if currently in the starting phase.
Moves the game into placement phase if currently in the starting phase .
start() {
        if (this.state !== BattleshipGame.STATE_STARTING) {
            throw new Error(`ATTEMPT_TO_START_ALREADY_STARTED_GAME`);
        }
        this.state = BattleshipGame.STATE_PLACEMENT;
    }
start ( ) { if ( this . state !== BattleshipGame . STATE_STARTING ) { throw new Error ( ` ` ) ; } this . state = BattleshipGame . STATE_PLACEMENT ; }
Moves the game into placement phase if currently in the starting phase.
Moves the game into placement phase if currently in the starting phase .