Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
man
DESCRIPTION
NAMESPACE
ReadMe.md

ReadMe.md

Peg-Solitaire Game

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.

To play, install the package using the install_github() function of devtools:

library(devtools)
install_github("2pie/Peg-Solitaire")
library(solitaire)
solitaire()

... or simply run the file solitaire.R in R. Start the game by writing solitaire() in the console.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.