Exemplo n.º 1
0
        public void FillSquareWithCard(int x, int y, LandCard card, Player p)
        {
            CheckIfFirstPlay(x, y);

            SetHighestLowest(x, y);

            BoardRows[x][y].CardInfo = card;
            AwardResourcesForPlayedCard(x, y, card, p);

            SetSquaresNearPlayAsValid(x, y);

            PreventGridLargerThan4x4();
        }
Exemplo n.º 2
0
        public void DrawPuzzleCard(Player p)
        {
            var    drawnCard = new LandCard();
            Random r         = new Random();
            int    rInt      = r.Next(1, Deck.Count);

            drawnCard = Deck[rInt];
            Deck.RemoveAt(rInt);

            //Starting hands don't seem very random without this
            System.Threading.Thread.Sleep(10);

            p.Hand.Add(drawnCard);
        }
Exemplo n.º 3
0
 private void AwardResourcesForPlayedCard(int x, int y, LandCard card, Player p)
 {
     var possiblePoints = 0;
 }