This is an algorithm to solve Chopsticks problems. For a chart on reachable positions, see
here
.
Chopsticks Solver
Enter 4-Digit Position (e.g., 1111 or 0104):
Whose turn is it?
Player's Turn
Opponent's Turn
Analyze Position