public override Action Act(ActionRequest request, GameState state) { UpdateEstimate(state); string can_do = string.Join(", ", request.PossibleActions.Select(x => x.ActionType.ToString())); logger.Debug("{0}, spent ${3}, Win Estimate: {1} (can {2})", state.CurrentPlayState, winEstimate, can_do.Trim(), spentThisPlay); Action choice = Decide(request, state); // Always check if able. if (choice == null) { if (request.Check != null) { choice = request.Check; } else { choice = request.Fold; } } spentThisPlay += choice.Amount; return(choice); }
public void BotChose(Action action, double estimate) { AddPlayLogMessage("", action.Amount.ToString(), "", string.Format("{0}, Estimate: {1}", action.ActionType, estimate)); if (action.ActionType == ActionType.FOLD) { folded = true; } bottomLabelRight.Text = "Estimate: " + estimate.ToString(); estimateShortTermHistory.Add(estimate); }