public void BracketOperator_PlayerSeat_SetPlayerAtThatSeat()
 {
     HandHistoryPlayerCollection players = new HandHistoryPlayerCollection();
     HandHistoryPlayer player = new HandHistoryPlayer("Nothing", 100);
     players[3] = player;
     Assert.AreSame(player, players[3]);
 }
Example #2
0
 public HandHistoryPokerAction(HandHistoryPlayer player, PokerAction action)
 {
     _player = player;
     _action = action;
 }
Example #3
0
        private void StateSeats()
        {
            Match match = Regex.Match(_line, @"^Seat ([\d]*): ([^\(]*) \(([\d]*)[a-zA-Z\s]*\).*");

            if (match.Success)
            {
                int seat = int.Parse(match.Groups[1].Value, EnUsCulture);
                string playerName = match.Groups[2].Value;
                long bankroll = long.Parse(match.Groups[3].Value, EnUsCulture);

                _players[seat] = new HandHistoryPlayer(playerName, bankroll);
            }
            else
            {
                _doNotConsumeNextLine = true;
                _state = ParseState.Blinds;
            }
        }