Beispiel #1
0
        public void assignHandToPlayer(string color, List <Tile> hand)
        {
            SPlayer currPlayer = onBoard.Find(x => x.returnColor() == color);

            if (currPlayer != null)
            {
                currPlayer.setHand(hand);
            }
            else
            {
                throw new Exception("Player is not an Active Player (assigning hand to player).");
            }
        }