Peg Game, Brute Force

Instructions
Author: Cliff Whitmer Version:

I always wondered if the peg game could be solved just by guessing random moves enough times. Turns out it can! There is no complicated logic. Each move is just a random guess.



You can also enter the number of games to play, press the "Play Games" button and that many games will quickly be played.


The results of each game will be logged to the table. Any games that get down to 2 pegs will be flagged as yellow and any games that actually make it to a single peg will be flagged with green so they are easy to spot.


The moves are shown as a list of three numbers the correspond to the peg numbers.


Have now added the ability to make move manually. Just click on peg to move then on the destination hole. You can mix and match random moves and manual moves.


Long click (> 0.5 sec.) to set open space


Pegs Remaining:
# of possible moves:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14



0 games

Pegs remain <= 10
0 of 0
# Remain Moves (From, To, Remove)