Exemplo n.º 1
0
 public void TurnPlayer2Bot(int gamerCardNumber)
 {
     DeskCards = new List <DeskCardsSlot> {
         new DeskCardsSlot(GamerHand[gamerCardNumber])
     };
     GamerHand.RemoveAt(gamerCardNumber);
 }
Exemplo n.º 2
0
        public Tuple <string, string> CloseBotCard(int gamerCardNumber)
        {
            //if (CanTransferPlayer(gamerCardNumber))
            //{
            //    DoTransferPlayer(gamerCardNumber);
            //    return null;
            //}
            foreach (var cardDesk in DeskCards)
            {
                if (IsClosingRight(GamerHand[gamerCardNumber], cardDesk.Back))
                {
                    cardDesk.Close(GamerHand[gamerCardNumber]);
                    GamerHand.RemoveAt(gamerCardNumber);
                }
                else
                {
                    return(new Tuple <string, string>("Нарушение правил", "Неправильно выбрана карта"));
                }
            }

            return(null);
        }
Exemplo n.º 3
0
 public void DoPlayerToss(int cardNumber)
 {
     DeskCards.Add(new DeskCardsSlot(GamerHand[cardNumber]));
     GamerHand.RemoveAt(cardNumber);
 }
Exemplo n.º 4
0
 public void DoTransferPlayer(int gamerCardNumber)
 {
     DeskCards.Add(new DeskCardsSlot(GamerHand[gamerCardNumber]));
     GamerHand.RemoveAt(gamerCardNumber);
     // WhosTurn = Players.Bot;
 }