Example #1
0
 private IEnumerable <Stone> FillAsset()
 {
     for (var i = 0; i < 6; i++)
     {
         yield return(GameDeck.GetStone());
     }
 }
Example #2
0
        public void GetNewStones(bool demonstrateWindow = true)
        {
            var counter = 0;

            while (GameDeck.Count > 0 && CurrentPlayer.Stones.All(stone =>
                                                                  !GameField.Matches(stone)))
            {
                CurrentPlayer.Stones.Add(GameDeck.GetStone());
                counter++;
            }

            if (demonstrateWindow)
            {
                DemonstrateMessage(counter);
            }
        }