19 Commits

Author SHA1 Message Date
7b87542508 Rename Solver to BruteForceSolver 2020-03-07 13:43:51 -05:00
7db1769723 Only loop through directions when a peg is present. 2021-02-28 15:12:40 -05:00
7dc37d4ede Solve for board size 6. 2021-02-28 15:11:45 -05:00
1c37ec31a1 Fix column iteration. 2021-02-28 14:50:18 -05:00
6add626470 Flesh out Solver a bit more.
Something is definitely broken though...
2021-02-28 14:41:26 -05:00
cf730e93a8 Add Solver class. 2021-02-27 11:48:14 -05:00
1b23945b0d Move main module to src/main.d. 2021-02-27 11:45:19 -05:00
03d6f4b55d Add Board.Position.toString(). 2021-02-24 22:18:06 -05:00
d6a3de2fd0 Add Board.peg_count. 2021-02-24 22:07:48 -05:00
22a8a3b94a Board: add remove_peg(), add_peg(), move(). 2021-02-24 22:02:59 -05:00
7235cd906f Rename valid_position() -> position_valid(). 2021-02-24 21:45:33 -05:00
b3a4cfa77d Add Board.Direction and Board.Position. 2021-02-21 20:44:23 -05:00
92d5bd13f0 Rename State to Board. 2021-02-21 19:52:11 -05:00
5af626e443 Move sources to "pegp" package. 2021-02-21 19:43:41 -05:00
6033454b8d Update rscons. 2021-02-21 19:39:50 -05:00
55096079a7 add unit tests for State class 2020-03-09 21:40:35 -04:00
d53cd1d0ad start on State class 2020-02-09 22:18:15 -05:00
776bed33c7 add Rsconscript and initial source file 2020-02-09 22:09:02 -05:00
4b7ead8706 add rscons 2020-02-09 22:06:19 -05:00