Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public void SetUp()
 {
     Board = new Board(100, 100);
     Player = Board.AddPlayer("red");
 }
Exemplo n.º 3
0
 public void TearDown()
 {
     Board = null;
     Player = null;
 }