- PigSolitaireSolver - Class in <Unnamed>
-
PigSolitaireSolver.java - Solver for Pig Solitaire with JUnit testing interface.
- PigSolitaireSolver(int, int) - Constructor for class PigSolitaireSolver
-
Solve Pig Solitaire for a given goal score and maximum number of turns using dynamic programming.
- PigSolver - Class in <Unnamed>
-
PigSolver.java - Solver for Pig with JUnit testing interface.
- PigSolver(int, double) - Constructor for class PigSolver
-
Solve Pig for a given goal score using value iteration with a given convergence parameter epsilon.
- pWin(int, int, int) - Method in class PigSolitaireSolver
-
Return the probability of winning with optimal play given the current score, number of turns completed,
and current turn total.
- pWin(int, int, int) - Method in class PigSolver
-
Return the probability of winning with optimal play given the current score, opponent score,
and current turn total.