File: fc-solve.6

package info (click to toggle)
freecell-solver 3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,332 kB
  • sloc: ansic: 29,493; perl: 8,911; xml: 5,162; python: 1,124; sh: 777; ruby: 358; cpp: 304; makefile: 150
file content (1359 lines) | stat: -rw-r--r-- 37,018 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
'\" t
.\"     Title: fc-solve
.\"    Author: Shlomi Fish <shlomif@cpan.org>
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 2009-08-29
.\"    Manual: \ \&
.\"    Source: \ \& $Id$
.\"  Language: English
.\"
.TH "FC\-SOLVE" "6" "2009\-08\-29" "\ \& $Id$" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
fc-solve \- automated solver for Freecell and related Solitiare variants
.SH "INTRODUCTION"
.sp
This is Freecell Solver version 3\&.12\&.x, a program that automatically solves most layouts of Freecell, and similar Solitaire variants as well as those of Simple Simon\&.
.sp
Freecell Solver is distributed under the MIT/X11 License ( http://en\&.wikipedia\&.org/wiki/MIT_License ), a free, permissive, public\-domain like, open\-source license\&.
.sp
Note that the Freecell Solver source and Win32 binary distributions \fBdo not\fR provide a graphical user\-interface (GUI) and are primarily meant to be used by Solitaire researchers and software developers\&. If you\(cqre looking for a suitable GUI based on Freecell Solver, see our links at:
.sp
http://fc\-solve\&.shlomifish\&.org/links\&.html#front_ends
.sp
I hope you\(cqll enjoy using Freecell Solver, and make the best of it\&.
.sp
\(em Shlomi Fish ( http://www\&.shlomifish\&.org/ )
.SH "BUILDING"
.sp
Read the file INSTALL\&.txt for information on how to do that\&.
.SH "USAGE"
.sp
The program is called "fc\-solve"\&. You invoke it like this:
.sp
.if n \{\
.RS 4
.\}
.nf
fc\-solve board_file
.fi
.if n \{\
.RE
.\}
.sp
board_file is the filename with a valid Freecell startup board\&. The file is built as follows:
.sp
It has the 8 Freecell stacks\&. Each stack contain its number of cards separated by a whitespace and terminated with a newline character( it\(cqs important that the last stack will also be terminated with a newline !)\&. The cards in the line are ordered from the bottom\-most card in the left to the topmost card in the right\&.
.sp
A card string contains the card number (or rank) followed by the card deck\&. The card number is one of: A,1,2,3,4,5,6,7,8,9,10,J,Q,K\&. Alterantively T can be used instead of 10\&. The card deck is one of: H,S,D,C (standing for Hearts, Spades, Diamonds and Clubs respectively)\&.
.sp
Here is an example board: (PySol/Microsoft board No\&. 24)
.sp
.if n \{\
.RS 4
.\}
.nf
4C 2C 9C 8C QS 4S 2H
5H QH 3C AC 3H 4H QD
QC 9S 6H 9H 3S KS 3D
5D 2S JC 5C JH 6D AS
2D KD 10H 10C 10D 8D
7H JS KH 10S KC 7C
AH 5S 6S AD 8H JD
7S 6C 7D 4D 8S 9D
.fi
.if n \{\
.RE
.\}
.sp
And another one: (PySol board No\&. 198246790)
.sp
.if n \{\
.RS 4
.\}
.nf
KD JH 5H 7D 9H KC 9D
3H JD 5D 8H QH 7H 2D
4D 3S QC 3C 6S QS KS
10C 9S 6D 9C QD 8S 10D
10S 8C 7S 10H 2C AS
8D AC AH 4H JC 4C
6H 7C 4S 5S 5C JS
AD KH 6C 2H 3D 2S
.fi
.if n \{\
.RE
.\}
.sp
You can specify the contents of the freecells by prefixing the line with "FC:"\&. For example:
.sp
.if n \{\
.RS 4
.\}
.nf
FC: 3H QC
.fi
.if n \{\
.RE
.\}
.sp
will specify that the cards 3 of hearts and queen of clubs are present in the freecells\&. To specify an empty freecell use a "\-" as its designator\&.
.sp
If there\(cqs another "FC:" line, the previous line will be overriden\&.
.sp
You can specify the contents of the foundations by prefixing the line with "Founds:" and then using a format as follows:
.sp
.if n \{\
.RS 4
.\}
.nf
Founds: H\-5 C\-A S\-0 D\-K
.fi
.if n \{\
.RE
.\}
.sp
Hence, the deck ID followed by a dash followed by the card number in the foundation\&. A suit that is not present will be assumed to be 0\&. Again, if there\(cqs more than one then the previous lines will be overriden\&.
.sp
The program will stop processing the input as soon as it read 8 lines of standard stacks\&. Therefore, it is recommended that the foundations and freecells lines will come at the beginning of the file\&.
.sp
The program will process the board and try to solve it\&. If it succeeds it will output the states from the initial board to its final solution to the standard output\&. If it fails, it will notify it\&.
.sp
For information about the various command\-line switches that Freecell Solver accepts, read the USAGE\&.txt file in this directory\&.
.sp
To solve Simple Simon boards append \-\-game simple_simon right after the "fc\-solve" program name\&.
.SH "THE BOARD GENERATION PROGRAMS"
.sp
Several programs which can generate the initial boards of various Freecell implementations can be found in the "board_gen/" sub\-directory\&. Read the README\&.txt file there for details on how they can be compiled and used\&.
.sp
In any case, they can save you the time of inputting the board yourself\&.
.SH "THE PROGRAMS"
.sp
Most command\-line switches have two versions:
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
A short POSIX one which is a dash followed by a letter or a few\&. This option must come standalone and not clustered:
\-sam
is not equivalent to specifying
\-s,
\-a
and
\-m\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
A long switch which is two dashes followed by the command string\&. For example:
\-\-prelude,
\-\-st\-name\&.
.RE
.sp
If command line arguments have parameters, they are followed in separate parameters \- Freecell Solver won\(cqt recognise a parameter preceded by an equal sign\&. \-\-st\-name=myname is invalid, while \-\-st\-name myname is OK\&.
.SH "GETTING HELP"
.sp
\-h , \-\-help
.sp
.if n \{\
.RS 4
.\}
.nf
This option displays a help text on the screen\&. This help gives a help
display summarizing some ways to use the program and get more help\&.

\-\-version
.fi
.if n \{\
.RE
.\}
.sp
This option displays the version number of the components that make the executable (and then exits)\&.
.SS "\-\-help\-configs"
.sp
Some help on the various configurations of Freecell Solver\&.
.SS "\-\-help\-options"
.sp
A help screen giving an overview of all available options\&.
.SS "\-\-help\-real\-help"
.sp
Explains how to change the default help screen to a different one\&.
.SS "\-\-help\-short\-sol"
.sp
How to generate shorter solutions\&.
.SS "\-\-help\-summary"
.sp
The default help screen\&.
.SH "OUTPUT OPTIONS"
.SS "\-p , \-\-parseable\-output"
.sp
This option will display the columns in a format that can be more easily manipulated by text\-processing programs such as grep or perl\&. Namely, The freecells will be displayed in one line, and the foundations in a separate line\&. Plus, Each column will be displayed horizontally, in its own line, while beginning with a :\&.
.SS "\-t , \-\-display\-10\-as\-t"
.sp
This option will display the 10 cards as a capital T +instead of a +10\&. Thus, the cards will be more properly aligned\&.
.sp
For example, here is a command line using \-p and \-t:
.sp
.if n \{\
.RS 4
.\}
.nf
$ pi\-make\-microsoft\-freecell\-board 24 | fc\-solve \-p \-t
\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-

Foundations: H\-0 C\-0 D\-0 S\-0
Freecells:
: 4C 2C 9C 8C QS 4S 2H
: 5H QH 3C AC 3H 4H QD
: QC 9S 6H 9H 3S KS 3D
: 5D 2S JC 5C JH 6D AS
: 2D KD TH TC TD 8D
: 7H JS KH TS KC 7C
: AH 5S 6S AD 8H JD
: 7S 6C 7D 4D 8S 9D


====================

Foundations: H\-0 C\-0 D\-0 S\-A
Freecells:
: 4C 2C 9C 8C QS 4S 2H
: 5H QH 3C AC 3H 4H QD
: QC 9S 6H 9H 3S KS 3D
: 5D 2S JC 5C JH 6D
: 2D KD TH TC TD 8D
: 7H JS KH TS KC 7C
: AH 5S 6S AD 8H JD
: 7S 6C 7D 4D 8S 9D
.fi
.if n \{\
.RE
.\}
.SS "\-c , \-\-canonized\-order\-output"
.sp
Freecell Solver re\-arranges the stacks and freecells in a given state according to their first card\&. It keeps their actual position in a separate place, but internally it uses their canonized place\&. Use this option, if you want Freecell Solver to display them in that order\&. One should be warned that that way the place of a given stack in the board will not be preserved throughout the solution\&.
.SS "\-m , \-\-display\-moves"
.sp
This option will display the moves instead of the intermediate states\&. Each move will be displayed in a separate line, in a format that is human\-readable, but that can also be parsed and analyzed by a computer program with some effort on the programmer\(cqs part\&.
.sp
For example:
.sp
.if n \{\
.RS 4
.\}
.nf
$ pi\-make\-microsoft\-freecell\-board 24 | fc\-solve \-m | head \-30
\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-

Move a card from stack 3 to the foundations

====================

Move a card from stack 6 to freecell 0

====================

Move a card from stack 6 to freecell 1
.fi
.if n \{\
.RE
.\}
.SS "\-sn , \-\-standard\-notation"
.sp
This option will display the moves in standard notation in which every move consists of two characters and there are ten moves in a line\&. Naturally, this option will only become apparent if the display moves is specified\&. (it does not implicitly specify it, though)\&.
.sp
For more information regarding standard notation refer to the following web\-page:
.sp
http://home\&.earthlink\&.net/~fomalhaut/freecell\&.html
.SS "\-snx , \-\-standard\-notation\-extended"
.sp
This option is similar to the previous one, except that when a sequence move is made to an empty stack with more than one card in the sequence, the move will be followed with "v" and the number of cards moved in hexadecimal\&.
.SS "\-sam , \-\-display\-states\-and\-moves"
.sp
This option will display both the intermediate states and the moves that are needed to move from one to another\&. The standard notation option applies to it to\&.
.sp
.if n \{\
.RS 4
.\}
.nf
$ pi\-make\-microsoft\-freecell\-board 24 | fc\-solve \-sam \-p \-t | head \-50
\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-=\-

Foundations: H\-0 C\-0 D\-0 S\-0
Freecells:
: 4C 2C 9C 8C QS 4S 2H
: 5H QH 3C AC 3H 4H QD
: QC 9S 6H 9H 3S KS 3D
: 5D 2S JC 5C JH 6D AS
: 2D KD TH TC TD 8D
: 7H JS KH TS KC 7C
: AH 5S 6S AD 8H JD
: 7S 6C 7D 4D 8S 9D


====================

Move a card from stack 3 to the foundations

Foundations: H\-0 C\-0 D\-0 S\-A
Freecells:
: 4C 2C 9C 8C QS 4S 2H
: 5H QH 3C AC 3H 4H QD
: QC 9S 6H 9H 3S KS 3D
: 5D 2S JC 5C JH 6D
: 2D KD TH TC TD 8D
: 7H JS KH TS KC 7C
: AH 5S 6S AD 8H JD
: 7S 6C 7D 4D 8S 9D


====================

Move a card from stack 6 to freecell 0

Foundations: H\-0 C\-0 D\-0 S\-A
Freecells:  JD
: 4C 2C 9C 8C QS 4S 2H
: 5H QH 3C AC 3H 4H QD
: QC 9S 6H 9H 3S KS 3D
: 5D 2S JC 5C JH 6D
: 2D KD TH TC TD 8D
: 7H JS KH TS KC 7C
: AH 5S 6S AD 8H
: 7S 6C 7D 4D 8S 9D


====================

Move a card from stack 6 to freecell 1
.fi
.if n \{\
.RE
.\}
.SS "\-pi , \-\-display\-parent\-iter"
.sp
This option (assuming the \-s and \-i options are specified) will also display the iteration index of the state from which the current state was derived\&. This is especially useful for BeFS (so\-called a\-star) or BFS scans\&.
.SS "\-o [filename] , \-\-output [filename]"
.sp
Outputs to a file instead of standard output\&. So for example:
.sp
.if n \{\
.RS 4
.\}
.nf
$ fc\-solve \-o 2405\&.solution\&.txt 2405\&.board
.fi
.if n \{\
.RE
.\}
.sp
Will put the solution to the file in 2405\&.board in the file 2405\&.solution\&.txt \&. This will also be done using:
.sp
.if n \{\
.RS 4
.\}
.nf
$ fc\-solve \-\-output 2405\&.solution\&.txt 2405\&.board
.fi
.if n \{\
.RE
.\}
.SS "\-sel , \-\-show\-exceeded\-limits"
.sp
This option will display a different status message ("Iterations count exceeded\&.") instead of "I could not solve this game\&." in case the iterations count was exceeded\&. This is recommended because the "I could not solve this game\&." message can also mean that the entire game graph was fully traversed (within the limitations of the specified moves\*(Aq types) and so no solution is possible\&.
.sp
This option is not the default, to retain compatibility with previous versions of Freecell Solver, and was added in version 3\&.12\&.0 of fc\-solve\&.
.SH "GAME VARIANTS OPTIONS"
.SS "\-\-freecells\-num [Number of Freecells]"
.sp
This option specifies the number of freecells which are available to the program\&. Freecell Solver can use any number of freecells as long as it does not exceed its maximal number\&.
.sp
This maximum is hard\-coded into the program, and can be specified at compile\-time by modifying the file config\&.h\&. See the file INSTALL (or alternatively INSTALL\&.html) for details\&.
.SS "\-\-stacks\-num [Number of Stacks]"
.sp
This option specifies the number of stacks present in the board\&. Again, this number cannot exceed the maximal number of stacks, which can be specified in the file config\&.h during compile\-time of Freecell Solver\&.
.SS "\-\-decks\-num [Number of Decks]"
.sp
This options specifies how many decks are found in the board\&. This number cannot exceed the maximal number of decks, which can be specified by the Freecell Solver build system\&.
.SS "\-\-sequences\-are\-built\-by {suit|alternate_color|rank}"
.sp
This option specifies whether a card sequence is built by suit or by alternate colour or by rank regardless of suit\&.
.SS "\-\-sequence\-move {limited|unlimited}"
.sp
This option specifies whether the sequence move is limited by the number of freecells or vacant stacks or not\&.
.SS "\-\-empty\-stacks\-filled\-by {kings|none|all}"
.sp
Specifies which cards can fill an empty stack\&.
.SS "\-\-game [game] , \-\-preset [game] , \-g [game]"
.sp
Specifies the type of game\&. Each preset implies several of the settings options above and sometimes even the tests order below\&. The default configuration is for Freecell\&.
.sp
Available presets:
.TS
allbox tab(:);
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt.
T{
.sp
bakers_dozen
T}:T{
.sp
Baker\(cqs Dozen
T}
T{
.sp
bakers_game
T}:T{
.sp
Baker\(cqs Game
T}
T{
.sp
beleaguered_castle
T}:T{
.sp
Beleaguered Castle
T}
T{
.sp
citadel
T}:T{
.sp
Citadel
T}
T{
.sp
cruel
T}:T{
.sp
Cruel
T}
T{
.sp
der_katz
T}:T{
.sp
Der Katzenschwanz
T}
T{
.sp
die_schlange
T}:T{
.sp
Die Schlange
T}
T{
.sp
eight_off
T}:T{
.sp
Eight Off
T}
T{
.sp
fan
T}:T{
.sp
Fan
T}
T{
.sp
forecell
T}:T{
.sp
Forecell
T}
T{
.sp
freecell
T}:T{
.sp
Freecell (default)
T}
T{
.sp
good_measure
T}:T{
.sp
Good Measure
T}
T{
.sp
ko_bakers_game
T}:T{
.sp
Kings\*(Aq Only Baker\(cqs Game
T}
T{
.sp
relaxed_freecell
T}:T{
.sp
Relaxed Freecell
T}
T{
.sp
relaxed_sehaven
T}:T{
.sp
Relaxed Seahaven Towers
T}
T{
.sp
seahaven
T}:T{
.sp
Seahaven Towers
T}
T{
.sp
simple_simon
T}:T{
.sp
Simple Simon
T}
T{
.sp
streets_and_alleys
T}:T{
.sp
Streets and Alleys
T}
.TE
.sp 1
.sp
Note: in order to solve Der Katzenschwanz and Die Schlange I recommend you compile Freecell Solver with the INDIRECT_STACK_STATES option, or else it will consume much more memory\&. For details consult the file INSTALL\&.
.SS "Examples"
.sp
To solve PySol Eight Off game No\&. 1,000 type:
.sp
.if n \{\
.RS 4
.\}
.nf
$ make_pysol_freecell_board\&.py 1000 eight_off | fc\-solve \-g eight_off
.fi
.if n \{\
.RE
.\}
.sp
To solve PySol Baker\(cqs Game No\&. 50, type:
.sp
.if n \{\
.RS 4
.\}
.nf
$ make_pysol_freecell_board\&.py 50 bakers_game | fc\-solve \-g bakers_game
.fi
.if n \{\
.RE
.\}
.sp
If you want to solve a game similar to Freecell only with sequences built by rank, and unlimited sequence move, do:
.sp
.if n \{\
.RS 4
.\}
.nf
$ fc\-solve \-g freecell \-\-sequences\-are\-built\-by rank \-\-sequence\-move unlimited
.fi
.if n \{\
.RE
.\}
.SH "5. SOLVING ALGORITHM OPTIONS"
.SS "\-mi [Iterations num] , \-\-max\-iters [Iterations num]"
.sp
This parameter limits the maximal number of states to check\&. This will give a rough limit on the time spent to solve a given board\&.
.SS "\-md [Maximal depth] , \-\-max\-depth [Maximal depth]"
.sp
Freecell Solver recurses into the solution\&. This parameter specifies a maximal recursion depth\&. Generally speaking, it\(cqs not a good idea to set it, because that way several important intermediate states may become inaccessible\&.
.SS "\-mss [num] , \-\-max\-stored\-states [num]"
.sp
Limits the number of the states stored by the program in the computer\(cqs memory\&. This differs from the maximal number of iterations in the sense, that it is possible that a stored state was not checked yet\&.
.SS "\-tmss [num] , \-\-trim\-max\-stored\-states [num]"
.sp
This also limits the number of trimmed stored states, but this time will try to trim them once the limit has been reached (which is time consuming and may cause states to be traversed again in the future)\&.
.SS "\-to [Test\(cqs Order] , \-\-tests\-order [Test\(cqs Order]"
.sp
This option specifies the order in which Freecell Solver will try the different types of moves that it can perform\&. Each move is specified by one character, and they are performed in the order in which they appear in the parameter string\&. You can omit tests by not including their corresponding characters in the string\&.
.sp
The tests along with their characters are:
.TS
allbox tab(:);
lt s
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt s
lt lt
lt lt
lt lt
lt lt
lt lt
lt s
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt.
T{
.sp
Freecell Tests:
T}
T{
.sp
\fI0\fR
T}:T{
.sp
put top stack cards in the foundations\&.
T}
T{
.sp
\fI1\fR
T}:T{
.sp
put freecell cards in the foundations\&.
T}
T{
.sp
\fI2\fR
T}:T{
.sp
put freecell cards on top of stacks\&.
T}
T{
.sp
\fI3\fR
T}:T{
.sp
put non\-top stack cards in the foundations\&.
T}
T{
.sp
\fI4\fR
T}:T{
.sp
move stack cards to different stacks\&.
T}
T{
.sp
\fI5\fR
T}:T{
.sp
move stack cards to a parent card on the same stack\&.
T}
T{
.sp
\fI6\fR
T}:T{
.sp
move sequences of cards onto free stacks\&.
T}
T{
.sp
\fI7\fR
T}:T{
.sp
put freecell cards on empty stacks\&.
T}
T{
.sp
\fI8\fR
T}:T{
.sp
move cards to a different parent\&.
T}
T{
.sp
\fI9\fR
T}:T{
.sp
empty an entire stack into the freecells\&.
T}
T{
.sp
Atomic Freecell Tests:
T}
T{
.sp
\fIA\fR
T}:T{
.sp
move a stack card to an empty stack\&.
T}
T{
.sp
\fIB\fR
T}:T{
.sp
move a stack card to a parent on a different stack\&.
T}
T{
.sp
\fIC\fR
T}:T{
.sp
move a stack card to a freecell\&.
T}
T{
.sp
\fID\fR
T}:T{
.sp
move a freecell card to a parent\&.
T}
T{
.sp
\fIE\fR
T}:T{
.sp
move a freecell card to an empty stack\&.
T}
T{
.sp
Simple Simon Tests:
T}
T{
.sp
\fIa\fR
T}:T{
.sp
move a full sequence to the foundations\&.
T}
T{
.sp
\fIb\fR
T}:T{
.sp
move a sequence to a true parent of his\&.
T}
T{
.sp
\fIc\fR
T}:T{
.sp
move a whole stack sequence to a false parent (in order to clear the stack)
T}
T{
.sp
\fId\fR
T}:T{
.sp
move a sequence to a true parent that has some cards above it\&.
T}
T{
.sp
\fIe\fR
T}:T{
.sp
move a sequence with some cards above it to a true parent\&.
T}
T{
.sp
\fIf\fR
T}:T{
.sp
move a sequence with a junk sequence above it to a true parent that has some cards above it\&.
T}
T{
.sp
\fIg\fR
T}:T{
.sp
move a whole stack sequence to a false parent which has some cards above it\&.
T}
T{
.sp
\fIh\fR
T}:T{
.sp
move a sequence to a parent on the same stack\&.
T}
T{
.sp
\fIi\fR
T}:T{
.sp
move any sequence to a false parent (using it may make the solution much slower)\&.
T}
.TE
.sp 1
.sp
Manipulating the tests order can be very helpful to the quick solution of a given board\&. If you found that a certain board cannot be solved in after a long time or in a certain maximal number of iterations, you should try different tests\*(Aq orders\&. Usually, one can find a test order that solves a board very quickly\&.
.sp
Note that this test order usually makes sense only for the Soft\-DFS and Random DFS scans (see the \-\-method option below)\&.
.sp
Also note that Freecell tests are not suitable for solving Simple Simon games and Simple Simon tests are not suitable for solving anything except Simple Simon\&.
.sp
Tests can be grouped together into random groups using parenthesis (e\&.g: "(0123)") or square brackets ("[012][3456789]")\&. Such grouping is only relevant to the Random DFS scan (see below)\&.
.SS "\-dto [Min Depth],[Tests\*(Aq Order] , \-\-depth\-tests\-order [Min Depth],[Tests\*(Aq Order]"
.sp
Sets the Tests\*(Aq order starting from the minimal depth onwards\&. This way, if a Soft\-DFS scan recurses deeply into the game, it will use a different tests\*(Aq order\&.
.sp
Note that if you set the tests\*(Aq order of a minimal depth of say 50, then it will override all the tests\*(Aq order of 50 and above\&. As a result, it is recommended that you set the minimal depth tests order in an increasing depth\&.
.sp
It should be noted that the \-to or \-\-tests\-order option above is equivalent to using this option with a minimal depth of 0\&.
.sp
Here are some examples:
.sp
.if n \{\
.RS 4
.\}
.nf
\-to 0123456789 \-dto 30,0138924567
.fi
.if n \{\
.RE
.\}
.sp
This sets the tests\*(Aq order to 0123456789 for all depths below 30 and to 0138924567 for all depths above it\&.
.sp
.if n \{\
.RS 4
.\}
.nf
\-to 0123457 \-dto 10,750123 \-dto 25,710235
.fi
.if n \{\
.RE
.\}
.sp
This sets the tests\*(Aq order to 0123457 for depths \-9 (those below 10), to 750123 for depths 10\-24, and to 710235 for the depths 25 onwards\&.
.SS "\-me [Solving Method] , \-\-method [Solving Method]"
.sp
This option specifies the solving method that will be used to solve the board\&. Currently, the following methods are available:
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}

a\-star
\- A Best\-First\-Search scan (not "A*" as it was once thought to be)
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}

bfs
\- A Breadth\-First Search (or BFS) scan
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}

dfs
\- A Depth\-First Search (or DFS) scan
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}

random\-dfs
\- A randomized DFS scan
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}

soft\-dfs
\- A "soft" DFS scan
.RE
.sp
Starting from recent Freecell Solver versions there is no difference between dfs and soft\-dfs\&. In earlier versions, use of soft\-dfs is recommended\&. random\-dfs is similar to soft\-dfs only it determines to which states to recurse into randomly\&. Its behaviour will differ depending on the seed you supply to it\&. (see the "\-seed" option below\&.)
.sp
BFS does not yield good results, and a\-star has a mixed behaviour, so for the time being I recommend using Soft\-DFS or Andom\-DFS\&.
.sp
The Random\-DFS scan processes every tests\*(Aq random group, randomizes the states that it found and recurses into them one by one\&. Renegade tests that do not belong to any group, are processed in a non\-random manner\&.
.SS "\-asw [BeFS Weights] , \-\-a\-star\-weight [BeFS Weights]"
.sp
Specify weights for the a\-star (= "Best\-First Search") scan, assuming it is used\&. The parameter should be a comma\-separated list of numbers, each one is proportional to the weight of its corresponding test\&.
.sp
The numbers are, in order:
.sp
.RS 4
.ie n \{\
\h'-04' 1.\h'+01'\c
.\}
.el \{\
.sp -1
.IP "  1." 4.2
.\}
The number of cards out\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 2.\h'+01'\c
.\}
.el \{\
.sp -1
.IP "  2." 4.2
.\}
The maximal sequence move\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 3.\h'+01'\c
.\}
.el \{\
.sp -1
.IP "  3." 4.2
.\}
The number of cards under sequences\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 4.\h'+01'\c
.\}
.el \{\
.sp -1
.IP "  4." 4.2
.\}
The length of the sequences which are found over renegade cards\&.
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 5.\h'+01'\c
.\}
.el \{\
.sp -1
.IP "  5." 4.2
.\}
The depth of the board in the solution\&.
.RE
.sp
The default weights are respectively: 0\&.5,0,0\&.3,0,0\&.2
.SS "\-seed [Seed Number]"
.sp
Specifies a seed to be used by Freecell Solver\(cqs internal random number generator\&. This seed may alter the behaviour and speed of the random\-dfs scan\&.
.SS "\-\-set\-pruning [Pruning] , \-sp [Pruning]"
.sp
This option sets the pruning algorithm for the soft thread\&. Current valid values are only the empty string ("") for no pruning and r:tf (short for "Run: to foundations") for Horne\(cqs rule\&. See:
.sp
http://tech\&.groups\&.yahoo\&.com/group/fc\-solve\-discuss/message/214
.SS "\-opt , \-\-optimize\-solution"
.sp
This option instructs Freecell Solver to try and optimize the solution path so it will have a smaller number of moves\&.
.SS "\-opt\-to [tests order] , \-\-optimization\-tests\-order [tests order]"
.sp
This argument specifies the test order for the optimization scan, in case it should be different than an order that contains all the tests that were used in all the normal scans\&.
.SS "\-\-reparent\-states"
.sp
This option specifies that states that were encountered whose depth in the states graph can be improved should be reparented to the new parent\&. This option can possibly make solutions shorter\&.
.SS "\-\-calc\-real\-depth"
.sp
This option becomes effective only if \-\-reparent\-states is specified\&. What it does, is explicitly calculate the depth of the state by tracing its path to the initial state\&. This may make depth consideration more accurate\&.
.SH "RUNNING SEVERAL SCANS IN PARALLEL"
.sp
Starting from Version 2\&.4\&.0, Freecell Solver can run several scans in parallel on the same state collection\&. Each scan resides in its own "Soft Thread"\&. By specifying several soft threads on the command line one can create use several parallel scans\&. Once one of the scans reaches a solution, the solution will be displayed\&.
.SS "\-nst , \-\-next\-soft\-thread"
.sp
This option creates a new soft\-thread and makes the following scan\-specific options initialize it\&. For example:
.sp
.if n \{\
.RS 4
.\}
.nf
$ fc\-solve \-\-method a\-star \-nst \-\-method soft\-dfs \-to 0123467 myboard\&.txt
.fi
.if n \{\
.RE
.\}
.sp
will run an BeFS scan and a Soft\-DFS scan with a tests order of 0123467 on myboard\&.txt\&.
.SS "\-step [Step] , \-\-soft\-thread\-step [Step]"
.sp
This option will set the number of iterations with which to run the soft thread before switching to the next one\&. By specifying a larger step, one can give a certain scan a longer run\-time and a higher priority\&.
.SS "\-nht , \-\-next\-hard\-thread"
.sp
This argument lets one initialize the next hard thread\&. If Freecell Solver was compiled with such support, then it is possible to run each hard thread in its own system thread\&. Each hard\-thread contains one or more soft threads\&.
.SS "\-\-st\-name [soft thread name]"
.sp
This argument sets the name used to identify the current soft thread\&. This name can later be used to construct the prelude (see below)\&.
.SS "\-\-prelude [i1@st1{,i2@st2{,i3@st3\&...}}]"
.sp
Sets the prelude for the hard thread\&. At the beginning of the search, the hard thread plays a static sequence of iterations at each of the soft threads specified in the prelude, for the number of iterations specified\&.
.sp
For example, if you had three soft threads named "foo", "bar" and "rin", then the following prelude:
.sp
.if n \{\
.RS 4
.\}
.nf
\-\-prelude 500@foo,1590@bar,100@foo,200@rin
.fi
.if n \{\
.RE
.\}
.sp
Will run 500 iterations in "foo", then 1590 in "bar", then 100 in "foo" again, and then 200 in "rin"\&. After the prelude finishes, the hard thread would run the scans one after the other in the sequence they were defined for their step number\&.
.SS "\-\-scans\-synergy {none|dead\-end\-marks}"
.sp
Specifies the synergy between the various scans, or how much they cooperate between themselves\&. none means they do not cooperate and only share the same memory resources\&. dead\-end\-marks means they try to mark states that they have withdrawn from, and states whose all their derived states are such, as "dead ends"\&. This may or may not improve the speed of the solution\&.
.SS "\-ni , \-\-next\-instance"
.sp
This option allows to run two or more separate solvers one after the other\&. If the first one returned an unsolvable verdict, then the second one would run and so on\&. One use of it is to run an atomic moves scan after a meta\-moves scan, so we will always get an accurate verdict and still enjoy some of the speed of the meta\-moves scan\&.
.SS "\-nf , \-\-next\-flare"
.sp
Each instance contains several flares\&. Flares are various alternative scans, that are ran one after another, as specified in the \-\-flares\-plan below or defaulting to running only the first flare (which isn\(cqt very useful)\&. Out of all the flares that are successful in solving a board, Freecell Solver picks the one with the shortest solution\&.
.SS "\-\-flare\-name [flare name]"
.sp
This is a name that identifies the flare for use in the flares\*(Aq plan\&.
.SS "\-\-flares\-plan [flare plan]"
.sp
This instance\-wide parameter gives a plan for the flares as a big string\&. Here are some examples:
.sp
.if n \{\
.RS 4
.\}
.nf
\-\-flares\-plan "RunIndef:FlareyFlare"
.fi
.if n \{\
.RE
.\}
.sp
This plan will run the flare with the name FlareyFlare indefinetely, until it terminates\&. Once a RunIndef action is encountered, the rest of the plan is ignored\&.
.sp
.if n \{\
.RS 4
.\}
.nf
\-\-flares\-plan "Run:500@MyFlare,Run:2000@FooFlare"
.fi
.if n \{\
.RE
.\}
.sp
Runs MyFlare for 500 iterations and FooFlare for 2,000 iterations\&. Note that both flares will be run and won\(cqt share any resources between them, and then the minimal solution out of both flares (or only those that finished )\&. If no flares finished, then Freecell Solver will run them both again for the same number of iterations each, until at least one finishes (or it ran out of the iterations\*(Aq limit)\&.
.sp
.if n \{\
.RS 4
.\}
.nf
\-\-flares\-plan "Run:500@dfs,Run:1500@befs,CP:,Run:10000@funky"
.fi
.if n \{\
.RE
.\}
.sp
This runs the flares identified by dfs and befs and then see if a solution was reached ("CP:" stands for \fB"checkpoint"\fR), and if so yield it\&. If both flares did not reach a solution yet, or failed to solve the board, it will run the flare funky for 10,000 iterations and yield its solution\&. And like the previous case, this solution will loop after it ended for as long as the no flare solved the board or the program did not run out of iterations\&.
.sp
Using checkpoints one can yield a possibly sub\-optimal (as far as solution length is concerned) solution that will still solve faster than letting all the flares run\&.
.SS "\-\-cache\-limit [cache limit]"
.sp
This is a numeric limit to the LRU cache which only matters if Freecell Solver was compiled with FCS_RCS_STATES enabled\&. This value should be a positive integer and the higher it is, the more quickly it is likely that Freecell Solver will run, but it will also consume more memory\&. (The entire point of FCS_RCS_STATES is to conserve memory)\&.
.SH "META-OPTIONS"
.SS "\-\-reset"
.sp
This option resets the program to its initial state, losing all the configuration logic that was inputted to it up to that state\&. Afterwards, it can be set to a different configuration, again\&.
.SS "\-\-read\-from\-file [num_skip,]filename"
.sp
This option will read the configuration options from a file\&. The format of the file is similar to that used by the UNIX Bourne Shell\&. (i\&.e: spaces denote separate arguments, double\-quotes encompass arguments, backslash escapes characters)\&.
.sp
The filename can be preceeded by an optional number of the arguments to skip followed by a comma\&. (the default is 0)
.SS "\-l [preset] , \-\-load\-config [preset]"
.sp
Reads the configuration specified by [preset] and configures the solver accordingly\&. A preset is a set of command line arguments to be analyzed in the place of this option\&. They are read from a set of presetrc files : one installed system\-wide, the other at $HOME/\&.freecell\-solver/presetrc and the third at the path specified by the FREECELL_SOLVER_PRESETRC environment variable\&. You can add more presets at any of these places\&. (refer to http://groups\&.yahoo\&.com/group/fc\-solve\-discuss/message/403 for information about their format)
.sp
Presets that are shipped with Freecell Solver:
.TS
allbox tab(:);
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt
lt lt.
T{
.sp
abra\-kadabra
T}:T{
.sp
a meta\-moves preset
T}
T{
.sp
blue\-yonder
T}:T{
.sp
a meta\-moves preset generated by a quota optimization algorithm\&.
T}
T{
.sp
children\-playing\-ball
T}:T{
.sp
a meta\-moves and flare\-based preset that tends to yield very short solution, but is very slow (solves only 3 boards per second on a Pentium 4 2\&.4GHz)\&.
T}
T{
.sp
cool\-jives
T}:T{
.sp
a meta\-moves preset
T}
T{
.sp
crooked\-nose
T}:T{
.sp
an atomic\-moves preset (guarantees an accurate verdict)
T}
T{
.sp
enlightened\-ostrich
T}:T{
.sp
a meta\-moves preset (that depends on Freecell Solver 3\&.4\&.0 and above) that yields solutions faster on average than foss\-nessy\&.
T}
T{
.sp
fools\-gold
T}:T{
.sp
an atomic\-moves preset
T}
T{
.sp
foss\-nessy
T}:T{
.sp
a meta\-moves preset (that depends on Freecell Solver 3\&.2\&.0 and above) that yields solutions faster on average than the\-iglu\-cabal\&.
T}
T{
.sp
good\-intentions
T}:T{
.sp
runs "cool\-jives" and then "fools\-gold"
T}
T{
.sp
gooey\-unknown\-thing
T}:T{
.sp
a meta\-moves preset that aims to minimise the outcome solution\(cqs length\&.
T}
T{
.sp
hello\-world
T}:T{
.sp
a meta\-moves preset
T}
T{
.sp
john\-galt\-line
T}:T{
.sp
a meta\-moves preset
T}
T{
.sp
maliciously\-obscure
T}:T{
.sp
a meta\-moves and flare\-based preset that tends to yield very short solutions (even in comparison to children\-playing\-ball ) but is slow\&.
T}
T{
.sp
rin\-tin\-tin
T}:T{
.sp
a meta\-moves preset
T}
T{
.sp
sand\-stone
T}:T{
.sp
an atomic\-moves preset that aims to minimise the outcome solution\(cqs length\&.
T}
T{
.sp
slick\-rock
T}:T{
.sp
run "gooey\-unknown\-thing" and then "sand\-stone"
T}
T{
.sp
sentient\-pearls
T}:T{
.sp
a meta\-moves and flares based preset with short solutions\&. Much faster than children\-playing\-ball but yields less optimal solutions\&.
T}
T{
.sp
tea\-for\-two
T}:T{
.sp
a meta\-moves preset optimized for two\-freecells\*(Aq Freecell games (although it can work on other Freecell\-like games as well)\&.
T}
T{
.sp
the\-iglu\-cabal
T}:T{
.sp
a meta\-moves preset that yields faster solutions on average than blue\-yonder\&.
T}
T{
.sp
the\-last\-mohican
T}:T{
.sp
a preset for solving Simple Simon\&. Yields less false negatives than the default one, but might be slower\&.
T}
T{
.sp
three\-eighty
T}:T{
.sp
a meta\-moves preset (that depends on Freecell Solver 3\&.4\&.0 and above) that yields solutions faster on average than enlightened\-ostrich\&.
T}
T{
.sp
toons\-for\-twenty\-somethings
T}:T{
.sp
an atomic\-moves preset that solves more boards efficiently than "fools\-gold"\&.
T}
T{
.sp
yellow\-brick\-road
T}:T{
.sp
a meta\-moves preset
T}
.TE
.sp 1
.sp
They can be abbreviated into their lowercase acronym (i\&.e: "ak" or "rtt")\&.
.SH "RUN-TIME DISPLAY OPTIONS"
.SS "\-i , \-\-iter\-output"
.sp
This option tells fc\-solve to print the iteration number and the recursion depth of every state which is checked, to the standard output\&. It\(cqs a good way to keep track of how it\(cqs doing, but the output slows it down a bit\&.
.SS "\-s , \-\-state\-output"
.sp
This option implies \-i\&. If specified, this option outputs the cards and formation of the board itself, for every state that is checked\&. "fc\-solve \-s" yields a nice real\-time display of the progress of Freecell Solver, but you usually cannot make what is going on because it is so fast\&.
.SH "SIGNAL COMBINATIONS"
.sp
If you are working on a UNIX or a similar system then you can set some run\-time options in "fc\-solve" by sending it some signal combinations\&.
.sp
If you send the signal USR1, without sending any other signals before that, then fc\-solve will output the present number of iterations\&. This method is a good way to monitor an instance that takes a long time to solve\&.
.sp
If you send it the signal USR2 and then USR1, then fc\-solve will print the iteration number and depth on every state that it checks\&. It is the equivalent of specifying (or unspecifying) the option \-i/\-\-iter\-output\&.
.sp
If you send it two USR2 signals and then USR1, then fc\-solve will also print the board of every state\&. Again, this will only be done assuming the iteration output is turned on\&.
.SH "AUTHOR"
.PP
\fBShlomi Fish\fR <\&shlomif@cpan\&.org\&>
.RS 4
Author.
.RE