public GameAction Action(GameState state)
        {
            if (Current >= Actions.Count)
            {
                return(GameAction.Fold);
            }
            var action = Actions[Current++];

            this.States.Add(FlattenState.Create(state, action, state.YourBot));
            return(action);
        }
Esempio n. 2
0
 private void Add(GameState state, GameAction action, PlayerType playerToMove)
 {
     this.States.Add(FlattenState.Create(state, action, playerToMove));
 }
 public void Reaction(GameState state, GameAction reaction)
 {
     this.States.Add(FlattenState.Create(state, reaction, state.YourBot.Other()));
     Reactions.Add(reaction);
 }