Skip to content

mbottone/peg_solitare_algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peg Solitare Decision Tree Generator

This generates the entire decision tree for the triangular peg solitare game. The algorithm is set up to run with any size or shape board with any starting configuation.

The final tree for the triangular game contains 1,293,179 nodes and takes a bit of time to finish.

This algorithm is not intended to find a solution to the puzzle quickily. The use of this was to generate the entire move tree and use that to study all of the winning and losing moves that could be made to attempt to come up with a set of deterministic steps to win the game from any point. This would hopefully allow for an algorithm to be created that could solve the puzzle in an extremely short amount of time.

About

Peg Solitaire decision tree generator in Swift 2.1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages