Example #1
0
        public World()
        {
            bank = new Bank();
            players = new List<Player>();

            // Generate a new map for the board
            this.catanMap = new CompleteMap();
            checkRobberHex();
            this.currentRoll = 0;
            this.largestArmySize = 0;
            this.longestRoadSize = 0;
            this.largestArmyOwnerIndex = -1;
            this.longestRoadOwnerIndex = 0;
            this.numOfCompletedRounds = 0;
        }
 public void TestMapsAreCorrectSize()
 {
     var target = new CompleteMap();
     Assert.AreEqual(66, target.getIslandMap().map.Length);
     Assert.AreEqual(25, target.getHexMap().map.Length);
 }
 public void TestCompleteMapInitializesProperly()
 {
     var target = new CompleteMap();
     Assert.NotNull(target);
 }