Exemple #1
0
        public GamblersWorldWith100DollarsToWin(int dollarsInHand, int stake)
        {
            _currentState = new GamblersWorldState(dollarsInHand);
            _action       = new GamblersWorldAction(stake);

            _world = new GamblersWorld(ProbabilityOfHeads, 100);
        }
Exemple #2
0
 public double PAction(GamblersWorldState state, GamblersWorldAction action)
 {
     return(action.Stake == 1 ? 1.0 : 0);
 }
Exemple #3
0
 public bool Equals(GamblersWorldAction other)
 {
     return(Stake == other.Stake);
 }