100 likes | 472 Views
Peg Solitaire Design Project. Crystal Wettingfeld. Board Design. Board Design Showing Moves. Basic Board Design. Class Diagram. Sequence Diagram. Use Case Diagram. Design Details. Used Depth First Search Simple and thorough idea Can be undone if not correct solution
E N D
Peg Solitaire Design Project Crystal Wettingfeld
Board Design Board Design Showing Moves Basic Board Design
Design Details • Used Depth First Search • Simple and thorough idea • Can be undone if not correct solution • Uses recursive functions and backtracking • Solve() • if valid move not removed • add Step • else • remove Step and repeat • if board is unsolvable • create new board • if solved • stop program
Sources • Bell, George. "George Bell's Triangular Peg Solitaire Page." Yahoo! GeoCities: Get a free web site with easy-to-use site building tools. 31 Mar. 2009 <http://www.geocities.com/~gibell/pegsolitaire/tindex.html>. • Darby, Gary. "Peg Solitaire Game." DelphiForFun Home. 31 Mar. 2009 <http://www.delphiforfun.org/Programs/PegSolitaire.htm>. • Do, Chuong. "Satisfiability and Peg Solitaire." Stanford Artificial Intelligence Laboratory. 31 Mar. 2009 <http://ai.stanford.edu/~chuongdo/satpage/index.html>. • Graham, Sidney.College of Science and Technology :: Central Michigan University. 31 Mar. 2009 <http://www.cst.cmich.edu/users/graha1sw/Pub/PegSol/EnglishPegSol.pdf>. • Martinoli, Paolo. "CodeProject: Solitaire Puzzle with Backtracking. Free source code and programming help." CodeProject. Free source code and programming help. 31 Mar. 2009 <http://www.codeproject.com/KB/cpp/SolitairePuzzle.aspx?display=Print>.