Club409

The best damn waste of time!

Cracker Barrel

mwinter
Total posts: 4328
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.
Shawn
Total posts: 1367
I can't get the program to run. Post more detailed instructions for us noobs
mwinter
Total posts: 4328
sorry; I only put up the source code. you'd have to compile it yourself which most of you probably dont have the stuff installed to do.

I uploaded the compiled binary for 32 bit windows here.
save crackers.exe to your desktop.
start -> run -> cmd
cd Desktop
crackers.exe
mike
Total posts: 2298
i'm pretty sure you just solved cancer