// What do I want the gameflow to do? // 1) Manages players turns (bool isp1Turn) // 2) Alternate FireShot () at enemy board // 3) Shot history and track board // 4) Check Coordinate() public void PlayGame(GameState state) { ShotStatus lastShot = ShotStatus.Invalid; /* * if (!state.IsPlayer1Turn) * { * ConsoleInput.WhoseTurn(state.P2); * } * else * { * ConsoleInput.WhoseTurn(state.P1); * } */ while (lastShot != ShotStatus.Victory) { ConsoleInput.DrawBoard(state); // prompt user for coordinate lastShot = FireShot(state); if (lastShot == ShotStatus.Duplicate || lastShot == ShotStatus.Invalid) { continue; } //ConsoleOutput.DrawBoard(state); state.IsPlayer1Turn = !state.IsPlayer1Turn; ConsoleOutput.ToNextTurn(); } }