public GamblersWorldWith100DollarsToWin(int dollarsInHand, int stake) { _currentState = new GamblersWorldState(dollarsInHand); _action = new GamblersWorldAction(stake); _world = new GamblersWorld(ProbabilityOfHeads, 100); }
public double PAction(GamblersWorldState state, GamblersWorldAction action) { return(action.Stake == 1 ? 1.0 : 0); }
public bool Equals(GamblersWorldAction other) { return(Stake == other.Stake); }