I was at the cracker barrel earlier today and I played that infernal peg game. Destined to leave 4 or more pegs in when I attempted to solve it by hand I decided to solve it with a computar.
Done and done.
c:\Crackers> g++ *.cpp -o crackers
c:\Crackers> crackers <a number 0-3>
The number that you enter (default 0) represents which peg is removed when you start. Symmetry means there's only 4 unique starting positions.