/// <summary> /// Updates game state, main game record and players' game records. /// </summary> void UpdateAllByAction(PokerAction action) { _state.UpdateByAction(action, _gameDef); _gameRecord.Actions.Add(action); for (int p = 0; p < _players.Count; ++p) { // Todo: public cards of other players will be hidden with '?'. This is // of low importance now because they are used only in Stud. if (action.Kind == Ak.d && action.Position != -1 && action.Position != p) { PokerAction hidden = action.DeepCopy(); hidden.Cards = GetHiddenPrivateDeal(); _players[p].gameRecord.Actions.Add(hidden); } else { _players[p].gameRecord.Actions.Add(action); } } }