Simple peg solitaire game written in python using customtkinter library.
To get the rules of the game, click on the Rules button in the upper left corner.
Fill the board with pegs then press Play to start the game.
Select a peg and click on the destination cell to move the peg.
You can:
-
restart the board by pressing the
Restartbutton. -
save the current board by pressing the
Savebutton. -
load a saved board by pressing the
Loadbutton. -
get solution by pressing the
Solutionbutton. -
solve the board by pressing the
Solvebutton. -
undo the last move by pressing the
Undobutton orctrl + z. -
redo the last move by pressing the
Redobutton orctrl + y.
For example let’s take solution of the previously shown board:
We will discuss the first move of the solution C7D:
The first two characters C7 represent the peg that will be moved.
The last character D represents the direction of the move.
The direction is represented by the following characters:
-
Ufor up -
Dfor down -
Lfor left -
Rfor right

