Example #1
0
        private static void StartNewRound()
        {
            foreach (var card in CutCards)
            {
                Deck.Cards.Push(card);
            }
            foreach (var card in FloppedCards)
            {
                Deck.Cards.Push(card);
            }

            Deck.Cards = Shuffle(Deck.Cards);

            Round.NewRound();

            foreach (var player in Round.Players)
            {
                DealHand(player);
            }

            PlayerActionEventArgs args = new PlayerActionEventArgs {
            };

            PokerEventsMediator.OnUpdateGraphics(null, args);

            t1 = new Thread(StartBets);
            t1.Start();
        }
Example #2
0
 private static void HandlePlayerAction(object sender, PlayerActionEventArgs e)
 {
     action    = e.Action;
     PlayerBet = e.BetAmount;
 }
 public static void OnPlayerAction(object sender, PlayerActionEventArgs e)
 {
     PlayerAction?.Invoke(sender, e);
 }