Exemplo n.º 1
0
        public static bool CheckMapIsFull(GameBoard board)
        {
            var count = 0;

            foreach (var territory in board.GetEarth().Territories)
            {
                if (territory.Occupant != "Empty")
                {
                    count++;
                }
            }

            if (count == 42)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 private void ReinforcementsPhase(GameBoard board)
 {
     board.CurrentPlayer.Armies = ArmyBuilder.ReinforcmentsCalculator(board.GetEarth(), board.CurrentPlayer);
     TroopDeployer.DeployTroops(board.CurrentPlayer);
 }