public void CreatingPlayerIsPlayerOne() { Player player1 = new Player(); var game = new Game(player1); Assert.AreEqual(player1, game.PlayerOne); }
public Game(Player creatingPlayer) { GameId = new Guid(); PlayerOne = creatingPlayer; AvailableShips = new List<Ship> { new Ship {Id = 1, Name = "Aircraft Carrier", Size = 5}, new Ship {Id = 2, Name = "Battleship", Size = 4}, new Ship {Id = 3, Name = "Submarine", Size = 3}, new Ship {Id = 4, Name = "Destroyer", Size = 3}, new Ship {Id = 5, Name = "Patrol Boat", Size = 2}, }; }
public bool Join(Player player) { throw new NotImplementedException(); }