예제 #1
0
        void HoldemTableStatistics_FoundWinner(string playerName)
        {
            HoldemPlayer winnerPlayer = (HoldemPlayer)FindPlayer(playerName);

            foreach (HoldemPlayer p in table.PlayerList)
            {
                if (winnerPlayer == p && winnerPlayer.WentToShowdownThisRound())
                {
                    Trace.WriteLine("Winner at showdown: " + p.Name);
                    p.IncrementWonAtShowdown();
                }
            }
        }