Function to play Peg Solitaire: A valid move is to jump a peg orthogonally over an adjacent peg into a hole two positions away and then to remove the jumped peg. The game is over when no moves are possible.
The goal is to have the lower number peg at the end.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.