solitaire: Peg-Solitaire Game

Description Usage Details Examples

View source: R/solitaire.R

Description

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.

Usage

1

Details

The goal is to have the lower number peg at the end.

Examples

1

2pie/Peg-Solitaire documentation built on May 5, 2019, 10:42 a.m.