示例#1
0
        private bool IsFish()
        {
            bool fish = true;

            if (!bazaar.IsEmpty())
            {
                return(false);
            }
            for (var i = 0; i < 2; ++i)
            {
                foreach (var dice in players[i].hand)
                {
                    if (table.PossibleMove(dice))
                    {
                        fish = false;
                    }
                }
            }
            return(fish);
        }
示例#2
0
文件: Player.cs 项目: Med-d/Dice
        public bool TakeDiceFromBazaar()
        {
            if (bazaar.IsEmpty())
            {
                Console.WriteLine("Bazaar is empty!");
                return(false);
            }
            var newDice = bazaar.GetDice();

            if (newDice != null)
            {
                hand.Add(newDice);
            }
            else
            {
                Console.WriteLine("Somthing went wrong!");
            }
            return(true);
        }