Solitaire is a simple single-player game that aims to jump over all the pegs so that only one is left on the board. The starting position of the game is to remove the center peg. Subsequently, the player starts the game by skipping the individual adjacent pegs only in a horizontal or vertical way. He always removes the skipped peg from the board.