Пример #1
0
 public Player AddPlayer(string color)
 {
     var playerSize = Settings.PlayerSize;
     var cords = RandomPosition(playerSize);
     var player = new Player(color, playerSize, cords);
     Players.Add(player);
     return player;
 }
Пример #2
0
 public void SetUp()
 {
     Board = new Board(100, 100);
     Player = Board.AddPlayer("red");
 }
Пример #3
0
 public void TearDown()
 {
     Board = null;
     Player = null;
 }