Ejemplo n.º 1
0
        public bool PlayInvention()
        {
            if (Action != GameAction.Invent)
            {
                Console.WriteLine("Изобретение не в свой ход");
                return(false);
            }

            if (Coins < CurrentInvention.Cost)
            {
                Console.WriteLine("You haven't got enought coins");
                Action = GameAction.None;
                return(true); //TODO true но карта не разыгрывается
            }

            if (!DropInvention(CurrentInvention))
            {
                return(false);
            }

            PlayedInventions.Add(CurrentInvention);
            Coins -= CurrentInvention.Cost;
            Action = GameAction.None;

            return(true);
        }
Ejemplo n.º 2
0
 public int GetPlayedInventionsCount()
 {
     return(PlayedInventions.Count());
 }