Пример #1
0
 // Constructor
 public Player(string player)
 {
     name            = GetPlayer(player);
     destroyer       = new Ship(2, "destroyer");
     submarine       = new Ship(3, "submarine");
     battleship      = new Ship(4, "battleship");
     aircraftCarrier = new Ship(5, "aircraft carrier");
     ships           = new Ship[] { destroyer, submarine, battleship, aircraftCarrier };
     shipCount       = 4;
     field           = new Board("battle field");
     referenceBoard  = new Board("enemy reference board");
     field.SetBlankBoard(field.board);
     referenceBoard.SetBlankBoard(referenceBoard.board);
 }