Exemplo n.º 1
0
        public void Can_get_cards_from_CivilizationCardSlot3()
        {
            var board = new GameBoard();
            board.CardSlot3 = Card.BF11;

            var card = board.GetCardFromSpace(BoardSpace.CivilizationCardSlot3);

            Assert.AreEqual(Card.BF11, card);
        }
Exemplo n.º 2
0
        public void Sets_initial_values()
        {
            var board = new GameBoard();

            Assert.AreEqual(36, board.CardDeck.Count);

            Assert.AreEqual(7, board.HutStack1.Remaining);
            Assert.AreEqual(7, board.HutStack2.Remaining);
            Assert.AreEqual(7, board.HutStack3.Remaining);
            Assert.AreEqual(7, board.HutStack4.Remaining);

            Assert.AreEqual(20, board.WoodAvailable);
            Assert.AreEqual(16, board.BrickAvailable);
            Assert.AreEqual(12, board.StoneAvailable);
            Assert.AreEqual(10, board.GoldAvailable);

            Assert.AreEqual(12, board.Tool1or2Available);
            Assert.AreEqual(6, board.Tool3or4Available);
        }
Exemplo n.º 3
0
        private bool InitialBoardSetup()
        {
            Phase = GamePhase.SetUpBoard;
            Board = new GameBoard();
            TurnOrder = new TurnOrder();

            AssignPlayerSeats();
            AssignPlayerColors();
            PassOutPlayerBoards();

            PrepareNewRound();
            ChooseStartPlayer();

            // TODO: "how to solve call back and setting up the board"
            IsThinking = false;
            Phase = GamePhase.PlayersPlacePeople;
            return true;
        }
Exemplo n.º 4
0
        public void Cannot_get_cards_from_other_slots()
        {
            var board = new GameBoard();

            Assert.Throws<InvalidSpaceForCardsException>(() => board.GetCardFromSpace(BoardSpace.HuntingGrounds));
        }