Skip navigation links
P S 

P

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.

S

shouldRoll(int, int, int) - Method in class PigSolitaireSolver
Return whether or not an optimal player should roll given the current score, number of turns completed, and current turn total.
shouldRoll(int, int, int) - Method in class PigSolver
Return whether or not an optimal player should roll given the current player score, opponent score, and current turn total.
P S 
Skip navigation links