Debian Codegraph @

examples/solitare/readme

raw
1 SOLITARE GAME
2 -------------
3
4 This example tries to calculate the reachable state space of the
5 Solitare game. The board is sketched below. At the beginning all
6 places except number 17 has a pin in them. A pin may be moved by
7 jumping over another pin into an empty place. The pin in between is
8 then removed. The goal is to remove all pins execept one - which
9 should be left in the center.
10
11 It took a few hours to run this example on a Alpha machine and it
12 required some 8000000 BDD nodes.
13
14 (*****************************************************************************)
15 (* *)
16 (* ---------------- *)
17 (* | 07 | 14 | 21 | *)
18 (* ---------------- *)
19 (* | 08 | 15 | 22 | *)
20 (* ------------------------------------ *)
21 (* | 01 | 04 | 09 | 16 | 23 | 28 | 31 | *)
22 (* ------------------------------------ *)
23 (* | 02 | 05 | 10 | 17 | 24 | 29 | 32 | *)
24 (* ------------------------------------ *)
25 (* | 03 | 06 | 11 | 18 | 25 | 30 | 33 | *)
26 (* ------------------------------------ *)
27 (* | 12 | 19 | 26 | *)
28 (* ---------------- *)
29 (* | 13 | 20 | 27 | *)
30 (* ---------------- *)
31 (* *)
32 (*****************************************************************************)
33
34
35 Thanks to Ken Larsen for his help with this example.