summaryrefslogtreecommitdiff
path: root/doc/gnubgdb.xml
blob: b632a2705cae67fa2e0ca654f069a76c49898ee5 (plain)
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
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
<article id="gnubg" lang="en">
  <articleinfo>
    <title><application moreinfo="none">GNU Backgammon</application> Manual
      V1.00.0</title>
    <titleabbrev role="texinfo-file">gnubg</titleabbrev>
    <abstract role="texinfo-node">
      <para>The GNU Backgammon manual</para>
    </abstract>
    <subjectset scheme="texinfo-directory">
      <subject><subjectterm>Games</subjectterm></subject>
    </subjectset>
    <copyright>
      <year>1999</year>
      <year>2000</year>
      <year>2001</year>
      <year>2002</year>
      <year>2003</year>
      <holder>Achim Mueller, Gary Wong</holder>
    </copyright>
    <copyright>
      <year>2007</year>
      <holder>Christian Anthon</holder>
    </copyright>
    <publisher>
      <publishername> GNU Project </publishername>
    </publisher>
    <authorgroup>
      <author>
        <firstname>Christian</firstname>
        <surname>Anthon</surname>
        <affiliation>
          <orgname>GNU Backgammon Project</orgname>
          <address format="linespecific">
            <email>christian.anthon@gmail.com</email>
          </address>
        </affiliation>
      </author>
    </authorgroup>
    <revhistory>
      <revision>
        <revnumber>GNU Backgammon Manual (docbook version)</revnumber>
        <date>February 2007</date>
        <revdescription>
          <para role="publisher">GNU Backgammon Project</para>
        </revdescription>
      </revision>
      <revision>
        <revnumber>GNU Backgammon Manual (wiki version)</revnumber>
        <date>January 2007</date>
        <revdescription>
          <para role="publisher">GNU Backgammon Project</para>
        </revdescription>
      </revision>
      <revision>
        <revnumber>GNU Backgammon Manual (texinfo version)</revnumber>
        <date>November 2003</date>
        <revdescription>
          <para role="publisher">GNU Backgammon Project</para>
        </revdescription>
      </revision>
    </revhistory>
    <releaseinfo>This manual describes version 1.00.0 of GNU Backgammon. </releaseinfo>
    <legalnotice>

      <para> Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.3 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in
the section entitled &#8220;GNU Free Documentation License&#8221;.<xref linkend="legal"/>. </para>
    <title>Feedback</title>
      <para>To report a bug or make a suggestion regarding the <application moreinfo="none">GNU Backgammon</application> application or this
        manual, send your suggestions to <email>bug-gnubg@gnu.org</email> or
        make a <ulink url="https://savannah.gnu.org/bugs/?group=gnubg">bug
          report</ulink>.</para>
    </legalnotice>
  </articleinfo>
  <sect1 id="gnubg-intro">
          <sect1info>
    <abstract role="texinfo-node">
      <para>Introduction to GNU Backgammon</para>
    </abstract>
    </sect1info>
    <title>Introduction</title>
    <para>This manual describes how to use <application moreinfo="none">GNU
        Backgammon</application> to play and analyse backgammon games and
      matches. It corresponds to version 1.00.0 (updated in August, 2013).</para>
    <para><application moreinfo="none">GNU Backgammon</application> (gnubg)
      plays and analyses both money game sessions and tournament matches. It
      evaluates and rolls out positions, and much more. Driven by a command-line
      interface, it displays an ASCII rendering of a board on text-only terminals,
      but also allows the user to play games and manipulate positions with a
      graphical GTK+interface. <application moreinfo="none">GNU
      Backgammon</application> is extensible on platforms which support Python.
      </para>
    <screenshot>
      <mediaobject>
        <imageobject>
		<imagedata fileref="images/gtkinterface.png" width="100%"/>
        </imageobject>
        <textobject role="texinfo">
          <programlisting>
(No game) new game
gnubg rolls 3, anthon rolls 1.

GNU Backgammon  Positions ID: 4HPwATDgc/ABMA
Match ID   : MIEFAAAAAAAA
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     O: gnubg
 | X           O    |   | O              X |     0 points
 | X           O    |   | O              X |     Rolled 31
 | X           O    |   | O                |
 | X                |   | O                |
 | X                |   | O                |
^|                  |BAR|                  |     (Cube: 1)
 | O                |   | X                |
 | O                |   | X                |
 | O           X    |   | X                |
 | O           X    |   | X              O |
 | O           X    |   | X              O |     0 points
 +13-14-15-16-17-18------19-20-21-22-23-24-+     X: anthon

gnubg moves 8/5 6/5.
          </programlisting>
        </textobject>
      </mediaobject>
    </screenshot>
    <para><application moreinfo="none">GNU Backgammon</application> is a world
      class opponent and rates at around 2100 on FIBS, the First Internet
      Backgammon Server - at its best, it is in the top 5 of over 6000 rated
      players there). <application moreinfo="none">GNU Backgammon</application>
      can be played on numerous other on-line backgammon servers.</para>
    <para>The following features can be found in the current release of
        <application>GNU Backgammon</application>.</para>
    <itemizedlist>
      <listitem>
        <para>A command line interface (with full command editing features if
          GNU readline is available) that lets you play matches and sessions
          against GNU Backgammon with a rough ASCII representation of the board
          on text terminals.</para>
      </listitem>
      <listitem>
        <para>Support for a GTK+ graphical user interface with both 2D and 3D
          views of the board.</para>
      </listitem>
      <listitem>
        <para>Tournament match and money session cube handling and cubeful play.
          All governed by an underlying cubeless money game based
          neural net.</para>
      </listitem>
      <listitem>
        <para>Support for both 1-sided and 2-sided bearoff databases: 1-sided
          bearoff database for 15 checkers on the first 6 points and optional
          2-sided database kept in memory. Larger 1-sided and 2-sided databases
          may be stored on disk.</para>
      </listitem>
      <listitem>
        <para>Automated rollouts of positions, with lookahead and variance
          reduction where appropriate. Rollouts may be extended.</para>
      </listitem>
      <listitem>
        <para>Automatic and manual annotation (analysis and commentary) of games
          and matches.</para>
      </listitem>
      <listitem>
        <para>Record keeping of player statistics in games and matches using relational databases (SQLite, MySQL, and PostgreSQL are supported).</para>
      </listitem>
      <listitem>
        <para>Loading and saving analysed games and matches as .sgf files (Smart
          Game Format).</para>
      </listitem>
      <listitem>
        <para>Importing of positions, games, and matches from a number of
          standard file formats, including: native GNU Backgammon file (.sgf),
          GamesGrid Save Game (.sgg),
          Jellyfish Match (.mat), FIBS Oldmoves (.fibs), Jellyfish Position
          (.pos), Snowie Text (.txt), TrueMoneyGames (.tmg), GammonEmpire Game
          (.gam), PartyGammon Game (.gam), and BGRoom Game (.bgf).</para>
      </listitem>
      <listitem>
        <para>Exporting of positions, games, and matches to a number of
          standard file formats, including: native GNU Backgammon file (.sgf),
          Hypertext Markup Language (.html), Jellyfish Game (.gam), Jellyfish
          Match (.mat), Jellyfish Position (.pos), LaTeX (.tex), Portable
          Document Format (.pdf), Plain Text (.txt), Portable Network Graphics
          (.png), Postscript (.ps), Snowie Text (.txt), and Scalable Vector
          Graphics (.svg).</para>
      </listitem>
      <listitem>
        <para>Python Scripting ability.</para>
      </listitem>
      <listitem>
        <para>Native language support; 13 languages are complete or in progress:
          (cs_CZ, da_DK, en_GB, en_US, es_ES, fr_FR, de_DE, is_IS, it_IT,
          ja_JP, ro_RO, ru_RU and tr_TR)</para>
      </listitem>
    </itemizedlist>
    <sect2 id="gnubg-intro_gpl">
      <title>GPL copying/warranty info</title>
      <para><application moreinfo="none">GNU Backgammon</application> is
        developed under the GNU General Public License (GPL) and it is part of
        the GNU project. For more information about the GNU project please visit their website:
        <ulink url="http://www.gnu.org/">http://www.gnu.org/</ulink> For more information about free software in general please visit The Free
        Software Foundation at: <ulink url="http://www.fsf.org/">http://www.fsf.org/</ulink>.</para>
    </sect2>
  </sect1>
  <sect1 id="gnubg-rules">
  <title>Rules of the game</title>
    <para>This section describes how to play a game, a match, or a session of
      money games against <application moreinfo="none">GNU
      Backgammon</application> or a human opponent. It is taken directly from
      the rules section of <ulink url="http://www.bkgm.com/">Backgammon Galore
      </ulink>, courtesy of Tom Keith.</para>
    <sect2 id="gnubg-rules_setup">
      <title>Setup</title>
      <para>Backgammon is a game for two players, played on a board consisting
        of twenty-four narrow triangles called points. The triangles alternate
        in color and are grouped into four quadrants of six triangles each. The
        quadrants are referred to as a player's home board and outer board, and
        the opponent's home board and outer board. The home and the outer boards
        are separated from each other by a ridge down the center of the board
        called the bar.</para>
      <figure float="0" id="gnubg-fig_init">
        <title>A board with the checkers in their initial position.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/rulfig1.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
     Outer Board           O's Home Board
 +13-14-15-16-17-18------19-20-21-22-23-24-+
 | X           O    |   | O              X |
 | X           O    |   | O              X |
 | X           O    |   | O                |
 | X                |   | O                |
 | X                |   | O                |
 |                  |BAR|                  |
 | O                |   | X                |
 | O                |   | X                |
 | O           X    |   | X                |
 | O           X    |   | X              O |
 | O           X    |   | X              O |
 +12-11-10--9--8--7-------6--5--4--3--2--1-+
     Outer Board           X's Home Board
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
      <para>An alternate arrangement is the reverse of the one shown here, with
        the home board on the left and the outer board on the right.</para>
      <para>The points are numbered for either player starting in that player's
        home board. The outermost point is the twenty-four point, which is also
        the opponent's one point. Each player has fifteen checkers of his own
        color. The initial arrangement of checkers is: two on each player's
        twenty-four point, five on each player's thirteen point, three on each
        player's eight point, and five on each player's six point.</para>
      <para>Both players have their own pair of dice and a dice cup used for
        shaking. A doubling cube, with the numerals 2, 4, 8, 16, 32, and 64 on
	its faces, is used to keep track of the current stake of the game.</para>
    </sect2>
    <sect2 id="gnubg-rules_object">
      <title>Object of the Game</title>
      <para>The object of the game is for a player to move all of his checkers
        into his own home board and then bear them off. The first player to bear
        off all of his checkers wins the game.</para>
      <figure float="0" id="gnubg-fig_direction">
        <title>Direction of movement of White's checkers. Red's checkers move in
          the opposite direction.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/rulfig2.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
  +13-14-15-16-17-18------19-20-21-22-23-24-+
  | X                |   |                X |
/---X-----------------------------------  X |
| | X                |   |                  |
| | X                |   |                  |
| | X                |   |                  |
| |                  |BAR|                  |
| |                  |   | X                |
| |                  |   | X                |
| |             X    |   | X                |
\---------------X----------X-----------&gt;    |
  |             X    |   | X                |
  +12-11-10--9--8--7-------6--5--4--3--2--1-+
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
    </sect2>
    <sect2 id="gnubg-rules_movement">
      <title>Movement of the Checkers</title>
      <para>To start the game, each player throws a single die. This determines
        both the player to go first and the numbers to be played. If equal
        numbers come up, then both players roll again until they roll different
        numbers. The player throwing the higher number now moves his checkers
        according to the numbers showing on both dice. After the first roll, the
        players throw two dice and alternate turns.</para>
      <para>The roll of the dice indicates how many points, or pips, the player
        is to move his checkers. The checkers are always moved forward, to a
        lower-numbered point. The following rules apply:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>A checker may be moved only to an open point, one that is not
            occupied by two or more opposing checkers. </para>
        </listitem>
        <listitem>
          <para>The numbers on the two dice constitute separate moves. For
            example, if a player rolls 5 and 3, he may move one checker five
            spaces to an open point and another checker three spaces to an open
            point, or he may move the one checker a total of eight spaces to an
            open point, but only if the intermediate point (either three or five
            spaces from the starting point) is also open.</para>
          <figure float="0" id="gnubg-fig_opening">
            <title>White opens the game with 53.</title>
            <mediaobject>
              <imageobject>
                <imagedata fileref="images/rulfig3.png"/>
              </imageobject>
              <textobject role="texinfo">
                <programlisting>
 +13-14-15-16-17-18------19-20-21-22-23-24-+
 | X        ^  O    |   | O     .        X |
 | X        +---------5---------^---3----X |
 | X           O    |   | O                |
 | X                |   | O                |
 | X                |   | O                |


 | O                |   | X----3---+       |
 | O                |   | X        |       |
 | O           X---------------5---+       |
 | O           X    |   | X        |     O |
 | O           X    |   | X        |     O |
 +12-11-10--9--8--7-------6--5--4--3--2--1-+
                </programlisting>
              </textobject>
            </mediaobject>
          </figure>
        </listitem>
        <listitem>
          <para>A player who rolls doubles plays the numbers shown on the dice
            twice. A roll of 6 and 6 means that the player has four sixes to
            use, and he may move any combination of checkers he feels
            appropriate to complete this requirement. </para>
        </listitem>
        <listitem>
          <para>A player must use both numbers of a roll if this is legally
            possible (or all four numbers of a double). When only one number can
            be played, the player must play that number. Or if either number can
            be played but not both, the player must play the larger one. When
            neither number can be used, the player loses his turn. In the case
            of doubles, when all four numbers cannot be played, the player must
            play as many numbers as he can. </para>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="gnubg-rules_hitting">
      <title>Hitting and Entering</title>
      <para>A point occupied by a single checker of either color is called a
        blot. If an opposing checker lands on a blot, the blot is hit and placed
        on the bar.</para>
      <para>Any time a player has one or more checkers on the bar, his first
        obligation is to enter those checker(s) into the opposing home board. A
        checker is entered by moving it to an open point corresponding to one of
        the numbers on the rolled dice.</para>
      <para>For example, if a player rolls 4 and 6, he may enter a checker onto
        either the opponent's four point or six point, so long as the
        prospective point is not occupied by two or more of the opponent's
        checkers.</para>
      <figure float="0" id="gnubg-fig_bar">
        <title>White rolls 64 with a checker on the bar.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/rulfig4.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
 +13-14-15-16-17-18------19-20-21-22-23-24-+
 | X           O    |   | O  O  ^        X |
 | X           O    |   | O  O  |          |
 | X                |   | O     |          |
 | X                |   | O     |          |
 | X                | X-----4---+          |
 |                  |BAR|                  |
 | O                |   | X                |
 | O                |   | X                |
 | O           X    |   | X                |
 | O           X    |   | X              O |
 | O           X    |   | X              O |
 +12-11-10--9--8--7-------6--5--4--3--2--1-+
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
      <para> If White rolls [64] with a checker on the bar, he must enter the
        checker onto Red's four point since Red's six point is not open. If
        neither of the points is open, the player loses his turn. If a player is
        able to enter some but not all of his checkers, he must enter as many as
        he can and then forfeit the remainder of his turn.</para>
      <para>After the last of a player's checkers has been entered, any unused
        numbers on the dice must be played, by moving either the checker that
        was entered or a different checker.</para>
    </sect2>
    <sect2 id="gnubg-rules_bearingoff">
      <title>Bearing Off</title>
      <para>Once a player has moved all of his fifteen checkers into his home
        board, he may commence bearing off. A player bears off a checker by
        rolling a number that corresponds to the point on which the checker
        resides, and then removing that checker from the board. Thus, rolling a
        6 permits the player to remove a checker from the six point.</para>
      <para>If there is no checker on the point indicated by the roll, the
        player must make a legal move using a checker on a higher-numbered
        point. If there are no checkers on higher-numbered points, the player is
        permitted (and required) to remove a checker from the highest point on
        which one of his checkers resides. A player is under no obligation to
        bear off if he can make an otherwise legal move.</para>
      <figure float="0" id="gnubg-fig_bearoff">
        <title>White rolls 64 and bears off two checkers.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/rulfig5.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
 |                  |   |    +----6---------&gt;
 |                  |   |    |  +--4--------&gt;
 |                  |   |    |  |          |
 |                  |   |    |  X  X  X  X |
 |                  |   |    X  X  X  X  X |
 +12-11-10--9--8--7-------6--5--4--3--2--1-+
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
      <para>A player must have all of his active checkers in his home board in
        order to bear off. If a checker is hit during the bear-off process, the
        player must bring that checker back to his home board before continuing
        to bear off. The first player to bear off all fifteen checkers wins the
        game.</para>
    </sect2>
    <sect2 id="gnubg-rules_doubling">
      <title>Doubling</title>
      <para>Backgammon is played for an agreed stake per point. Each game starts
        at one point. During the course of the game, a player who feels he has a
        sufficient advantage may propose doubling the stakes. He may do this
        only at the start of his own turn and before he has rolled the dice.</para>
      <para>A player who is offered a double may refuse, in which case he
        concedes the game and pays one point. Otherwise, he must accept the
        double and play on for the new higher stakes. A player who accepts a
        double becomes the owner of the cube and only he may make the next
        double.</para>
      <para>Subsequent doubles in the same game are called redoubles. If a
        player refuses a redouble, he must pay the number of points that were at
        stake prior to the redouble. Otherwise, he becomes the new owner of the
        cube and the game continues at twice the previous stakes. There is no
        limit to the number of redoubles in a game.</para>
    </sect2>
    <sect2 id="gnubg-rules_gammons">
      <title>Gammons and Backgammons</title>
      <para>At the end of the game, if the losing player has borne off at least
        one checker, he loses only the value showing on the doubling cube (one
        point, if there have been no doubles). However, if the loser has
          <emphasis>not</emphasis> borne off any of his checkers, he is gammoned
        and loses <emphasis>twice</emphasis> the value of the doubling cube. Or,
        worse, if the loser has not borne off any of his checkers and still has
        a checker on the bar or in the winner's home board, he is backgammoned
        and loses <emphasis>three times</emphasis> the value of the double
      cube.</para>
    </sect2>
    <sect2 id="gnubg-rules_optional">
      <title>Optional Rules</title>
      <para>The following optional rules are in widespread use.</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Automatic doubles. If identical numbers are thrown on the first
            roll, the stakes are doubled. The doubling cube is turned to 2 and
            remains in the middle. Players usually agree to limit the number of
            automatic doubles to one per game.</para>
        </listitem>
        <listitem>
          <para>Beavers. When a player is doubled, he may immediately redouble
            (beaver) while retaining possession of the cube. The original
            doubler has the option of accepting or refusing as with a normal
            double. </para>
        </listitem>
        <listitem>
          <para>The Jacoby Rule. Gammons and backgammons count only as a single
            game if neither player has offered a double during the course of the
            game. This rule speeds up play by eliminating situations where a
            player avoids doubling so he can play on for a gammon. </para>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="gnubg-rules_match">
      <title>Rules for Match Play</title>
      <para>When backgammon tournaments are held to determine an overall winner,
        the usual style of competition is match play. Competitors are paired
        off, and each pair plays a series of games to decide which player
        progresses to the next round of the tournament. This series of games is
        called a match.</para>
      <para>Matches are played to a specified number of points. The first player
        to accumulate the required points wins the match. Points are awarded in
        the usual manner: one for a single game, two for a gammon, and three for
        a backgammon. The doubling cube is used, so the winner receives the value
        of the game multiplied by the final value of the doubling cube.</para>
      <para>Matches are normally played using the Crawford rule. The Crawford
        rule states that if one player reaches a score one point short of the
        match, neither player may offer a double in the immediately following
        game. This one game with no doubling is called the Crawford game. If the
        Crawford game is won by the trailing player then the doubling cube becomes
        available in all subsequent games (and it's most often in the best
        interests of the trailing player to double immediately in these games).</para>
      <informaltable frame="all">
        <tgroup cols="4">
          <tbody>
            <row>
                    <entry>Match to 5</entry>
                    <entry>White</entry>
                    <entry>Black</entry>
		    <entry>Doubling</entry>
                    </row> <row>
              <entry>White wins 2</entry>
              <entry>2</entry>
<entry>0</entry>
              <entry>Allowed</entry>
</row>
            <row>
              <entry>Black wins 1 </entry>
              <entry>2</entry>
<entry>1</entry>
              <entry>Allowed</entry>
</row>
            <row>
              <entry>White wins 2 </entry>
              <entry>4</entry>
              <entry>1</entry>
              <entry>Allowed</entry>
</row>
            <row>
              <entry>Black wins 1 </entry>
              <entry>4</entry>
              <entry>2</entry>
              <entry>Crawford Game</entry>
</row>
            <row>
              <entry>Black wins 2 </entry>
              <entry>4</entry>
              <entry>4</entry>
              <entry>Allowed</entry>
</row>
            <row>
              <entry>White wins 2 </entry>
              <entry>6</entry>
              <entry>4</entry>
              <entry>Allowed</entry>
</row>
          </tbody>
        </tgroup>
      </informaltable>
      <para>In this example, White and Black are playing a 5-point match. After
        three games White has 4 points, which is just one point short of what he
        needs. That triggers the Crawford rule which says there can be no
        doubling in next game, Game 4.</para>
      <para>There is no bonus for winning more than the required number of
        points in match play. The sole goal is to win the match, and the size of
        the victory doesn't matter.</para>
      <para>Automatic doubles, beavers, and the Jacoby rule are not used in
        match play.</para>
    </sect2>
  </sect1>
  <sect1 id="gnubg-starting">
          <sect1info>
    <abstract role="texinfo-node">
      <para>Starting GNU Backgammon. Command line options.</para>
    </abstract>
    </sect1info>
    <title>Starting GNU Backgammon</title>
    <sect2 id="gnubg-starting_unix">
      <title>Linux and Unix</title>
      <para>If <application moreinfo="none">GNU Backgammon</application> is
        properly installed on your system, you can start it by simply typing
        gnubg at the command prompt. If you want to start the GNU Backgammon
        command line interface, you can type gnubg --tty or gnubg -t. With this
        option, <application moreinfo="none">GNU Backgammon</application> starts
        without the graphic user interface. There is also other options which
        can be added at the start-up.</para>
    </sect2>
    <sect2 id="gnubg-starting_ms">
      <title>Microsoft Windows</title>
      <para>The builds of <application moreinfo="none">GNU
        Backgammon</application> which may be downloaded from the <ulink url="http://www.gnubg.org">main <application moreinfo="none">GNU
            Backgammon</application> page</ulink> comes with an installation
        system. The installation system will create a launch menu item in your
        start menu. Usually the menu item can be found by choosing <menuchoice moreinfo="none"><guimenu moreinfo="none">Start</guimenu><guimenuitem moreinfo="none">Programs</guimenuitem><guimenuitem moreinfo="none">GNU Backgammon</guimenuitem><guimenuitem moreinfo="none">GNU Backgammon for Windows.</guimenuitem></menuchoice>.</para>
      <para><application moreinfo="none">GNU Backgammon</application> also has a
        command line interface. This is supplied as a separate executable file
        on Microsoft Windows. You can start this version of <application moreinfo="none">GNU Backgammon</application> by choosing <menuchoice moreinfo="none"><guimenu moreinfo="none">Start</guimenu><guimenuitem moreinfo="none">Programs</guimenuitem><guimenuitem moreinfo="none">GNU Backgammon</guimenuitem><guimenuitem moreinfo="none">GNU Backgammon Command Line
          Interface.</guimenuitem></menuchoice>
      </para>
    </sect2>
    <sect2 id="gnubg-starting_mac">
      <title>Mac OS X</title>
      <para>Once you have installed both an X11R6 server and <application moreinfo="none">GNU Backgammon</application> for Mac OS X, you can run
          <application moreinfo="none">GNU Backgammon</application> for Mac OS X
        by:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Start your X11R6 server; </para>
        </listitem>
        <listitem>
          <para>Once your X11R6 server is running, in one of its Terminal
            windows (by default, Apple's X11 opens one such window at start-up,
            and XDarwin opens three), do the following: </para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>If you have installed <application moreinfo="none">GNU
                  Backgammon</application> in your private Applications folder,
                type <command> cd Applications/gnubg</command> to get into
                  <application moreinfo="none">GNU Backgammon</application> for
                Mac OS X's folder, and then type <command>./gnubg</command> to
                run it;</para>
            </listitem>
            <listitem>
              <para>If you have installed <application moreinfo="none">GNU
                  Backgammon</application> in the global, top-level Applications
                folder, type <command>cd /Applications/gnubg</command> to get
                into <application moreinfo="none">GNU Backgammon</application>
                for Mac OS X's folder, and type <command>./gnubg</command> to run
                it; </para>
            </listitem>
          </orderedlist>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="gnubg-starting_options">
      <title>Command line options</title>
      <para> The following options control the startup of <application moreinfo="none">GNU Backgammon</application>. Most options are
        available in all versions of <application moreinfo="none">GNU
        Backgammon</application>, but notably, the -w and -t options don't work
        under MS windows where separate command line and GUI applications exist
        instead.</para>
      <example id="gnubg-options">
        <title>GNU Backgammon startup options</title>
        <programlisting format="linespecific">
Usage:
gnubg [OPTION...] [file.sgf]

Help Options:
-h, --help                   Show help options
--help-all                   Show all help options
--help-gtk                   Show GTK+ Options

Application Options:
-b, --no-bearoff             Do not use bearoff database
-c, --commands=FILE          Evaluate commands in FILE and exit
-l, --lang=LANG              Set language to LANG
-p, --python=FILE            Evaluate Python code in FILE and exit
-q, --quiet                  Disable sound effects
-r, --no-rc                  Do not read .gnubgrc and .gnubgautorc commands
-S, --splash                 Show gtk splash screen
-t, --tty                    Start the command line instead of using the graphical interface
-v, --version                Show version information and exit
-w, --window-system-only     Ignore tty input when using the graphical interface
-d, --debug                  Turn on debug
-D, --datadir                Specify location of general data
-P, --pkgdatadir             Specify location of program specific data
-O, --docdir                 Specify location of program documentation
-s, --prefsdir               Specify location of user's preferences directory
--display=DISPLAY            X display to use
          </programlisting>
      </example>
    </sect2>
  </sect1>
  <sect1 id="gnubg-playing">
    <title>Playing a game</title>
    <sect2 id="gnubg-playing_new">
      <title>Starting a new match or session</title>
      <para>To start a new game, match or session choose <menuchoice moreinfo="none"><guimenu moreinfo="none">File</guimenu><guimenuitem moreinfo="none">New</guimenuitem></menuchoice>, or use the <guibutton>New</guibutton> button in the
        toolbar. This will open a dialog box, where you can select the main
        options for the new backgammon game you are about to begin. </para>
      <figure float="0" id="gnubg-fig_newdialog">
        <title>The dialog for starting a new match.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/newbox.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
To start a new match in the CL version type 'new match' or
'new session'.
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
      <para>The shortcut buttons are the quickest way to start the game or
        match. If you click on the button with the $ sign, you will start a new
        money game session immediately. If you click on a numbered button, you
        will start a new match of the specified length.</para>
      <para>The dialog allows a fine tuning of the startup options:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Use the radio buttons to choose whether you want to start a
            match, game or session. If you wish to start a new match, you should
            select the match length by typing into the Match length field.
          </para>
        </listitem>
        <listitem>
          <para>You may play against both the program itself or against a
            friend. If you want to start a match or game against a friend,
            select the Human vs. Human option.</para>
        </listitem>
        <listitem>
          <para>Normally the dice are generated by a random number generator,
            but you may use manual dice if you check this option. Then
              <application> GNU Backgammon</application> will prompt for the
            dice roll before each roll.</para>
        </listitem>
        <listitem>
          <para><application>GNU Backgammon</application> comes with a tutor
            mode. If this mode is active, GNU Backgammon analyses each move you
            do, and warn you each time you make a mistake. More about tutor mode
            later.</para>
        </listitem>
        <listitem>
          <para>By clicking on the Modify player settings... button, you will
            see the whole player setting dialog. Here you define the playing
            strength of <application>GNU Backgammon</application>. This dialog
            will be explained later.</para>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="gnubg-playing_roll">
      <title>Rolling the dice</title>
      <para>The simplest way to roll the dice is to click in the right board
        area between the board points. You can also roll the dice from the menu <menuchoice><guimenu>Game</guimenu><guimenuitem>Roll</guimenuitem></menuchoice> or with the keyboard shortcut <keycombo><keycap>Ctrl</keycap><keycap>R</keycap></keycombo>.</para>
      <figure float="0" id="gnubg-fig_roll">
        <title>Click in the red rectangle to roll the dice.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/rolldice.png"/>
          </imageobject>
          <textobject role="texinfo">
            <programlisting>
To roll the dice the CL version type 'roll'.
            </programlisting>
          </textobject>
        </mediaobject>
      </figure>
      <para>When you have moved your checkers to make the desired move, you
        complete your turn by clicking on the dice.</para>
    </sect2>
    <sect2 id="gnubg-playing_move">
      <title>Moving the checkers</title>
      <sect3 id="gnubg-playing_move_drag">
        <title>Moving by drag and drop</title>
        <para>One way to move the checkers is to click on a checker you want to
          move and then drag it, while holding the mouse button down, to the
          desired designation point. If you have the option Show target help
          when dragging checkers enabled, you will see the a green guiding at
          any legal target point for the checker you are dragging. You can find
          this option by choosing <menuchoice><guimenu>Settings</guimenu><guimenuitem>Options...</guimenuitem><guimenuitem>Display</guimenuitem></menuchoice>
        </para>
      </sect3>
      <sect3 id="gnubg-playing_move_click">
        <title>Moving checkers by clicking</title>
        <para>Move the mouse cursor over the checker you want to move. If you
          now click the <emphasis>left</emphasis> mouse button, the checker will
          move the pips of the <emphasis>left</emphasis> die. If you have
          already moved one checker, clicking on a new checker will move it
          according to the pips of the remaining die. If you click with the
            <emphasis>right</emphasis> mouse button on a checker, the checker
          will move according to the <emphasis>right</emphasis> die.</para>
        <para>Using this method for moving the checkers can be really effective.
          Some users prefer showing the higher die to the left. You can make
            <application>GNU Backgammon</application> show the highest die to
          the left if you choose <menuchoice><guimenu> Settings </guimenu><guimenuitem> Options... </guimenuitem><guimenuitem> Dice </guimenuitem></menuchoice> and check the check box labeled Show higher die on
        left.</para>
      </sect3>
      <sect3 id="gnubg-playing_move_undo">
        <title>Undo a move</title>
        <para>Before you complete your move by clicking the dice, it's possible
          to undo your moves and return to the position before any checkers have
          been moved. You can either click the Undo button in the toolbar, or
          you can choose <menuchoice><guimenu> Edit </guimenu><guimenuitem> Undo </guimenuitem></menuchoice> from the menu or the keyboard shortcut <keycombo><keycap>Ctrl</keycap><keycap>Z</keycap></keycombo>.</para>
      </sect3>
      <sect3 id="gnubg-playing_move_shortcut">
        <title>Some shortcuts</title>
        <para>There are some shortcuts for moving the checkers. You can
            <emphasis>make a new point</emphasis> by right clicking on the empty
          point that you want to make. As an example, if you roll 31 as the
          opening roll, and you want to play 8/5 6/5, you simply place the mouse
          cursor on the 5-point and right click. Making points this way also
          works if you hit a checker, and with doubles.</para>
        <para>Another shortcut can be used in the bearoff phase of the game. By
          clicking in the bearoff tray, <emphasis>two checkers will be born
          off</emphasis> if such a move is legal.</para>
        <para><application>GNU Backgammon</application> can auto play forced
          moves for you. This feature can be enabled by choosing <menuchoice><guimenu> Settings </guimenu><guimenuitem> Options... </guimenuitem><guimenuitem> Game </guimenuitem></menuchoice>, and then check the box Play forced moves
        automatically.</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-playing_double">
      <title>Using the doubling cube</title>
      <sect3 id="gnubg-playing_double_offer">
        <title>Offering a double</title>
        <para>You offer a double to your opponent by clicking on the cube. This
          will offer the cube immediately. You can also click <menuchoice><guimenu>Game</guimenu><guimenuitem>Double</guimenuitem></menuchoice> from the menu or the keyboard shortcut <keycombo><keycap>Ctrl</keycap><keycap>D</keycap></keycombo>.</para>
      </sect3>
      <sect3 id="gnubg-playing_double_tp">
        <title>Accepting or declining a cube</title>
        <para>You accept a double made by your opponent by clicking on the
          offered doubling cube at the board. If you want to decline the double,
          you can right click on the cube.</para>
        <para>There are also three buttons in the toolbar for handling cube
          offers. These buttons are marked Accept, Decline and Beaver. The
          beaver button is only activated in money game sessions where beavers
          are allowed.</para>
        <figure float="0" id="gnubg-fig_double">
          <title>The toolbar double buttons.</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/cubebuttons.png"/>
            </imageobject>
	    <textobject>
		    <phrase>[[cubebuttons.png]]</phrase>
	    </textobject>
          </mediaobject>
        </figure>
        <para>There are also menu options from the drop down menu for all the
          cube actions. Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Take</guimenuitem></menuchoice> from the menu, to accept an offered double(<keycombo><keycap>Ctrl</keycap><keycap>T</keycap></keycombo>). Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Drop</guimenuitem></menuchoice>, from the menu, to to decline an offered double(<keycombo><keycap>Ctrl</keycap><keycap>P</keycap></keycombo>). Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Beaver</guimenuitem></menuchoice>, from the menu, to beaver an offered double. </para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-playing_resign">
      <title>Resigning</title>
      <sect3 id="gnubg-playing_resign_offer">
        <title>Offering a resignation</title>
        <para>It's also possible to resign during a game. To resign during play
          press the Resign button in the toolbar. This is the button with the
          image of a white flag. When this button is pressed, a dialog box will
          appear where you can select if you want to resign a single game,
          gammon or backgammon. The resignation dialog may also be reached from
          the menu system. Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Resign</guimenuitem></menuchoice> to offer your resignation.</para>
      </sect3>
      <sect3 id="gnubg-playing_resign_accept">
        <title>Accepting or declining a resignation</title>
        <para>When a resignation is offered a white square will appear on the
          board area. The square has a number 1, 2 or 3. A square with a
            <emphasis>1</emphasis>, means that a single game resignation is
          offered, a <emphasis>2</emphasis> that a gammon resignation is
          offered, and a <emphasis>3</emphasis>, means that a backgammon is
          offered. If you're using a 3D board, the resignation will be a white
          flag instead of a square.</para>
        <para>To accept the resignation click on the numbered square. If you
          want to decline the resignation, you right click instead. You can also
          use the same toolbar buttons as for accepting or declining a double.
          There is also a menu option for accepting and declining resignations.
          Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Agree to resignation</guimenuitem></menuchoice> from the menu, to accept an offered resignation. Click <menuchoice><guimenu>Game</guimenu><guimenuitem>Decline resignation</guimenuitem></menuchoice> from the menu, to decline an offered resignation.</para>
      </sect3>
    </sect2>
  </sect1>
  <sect1 id="gnubg-hint">
    <title>Getting hints and Tutor Mode</title>
    <sect2 id="gnubg-hint_manual">
            <title>Getting hints manually</title>
    <sect3 id="gnubg-hint_tutor_checker">
      <title>Getting checker play hints while playing</title>
      <para>If you want to get a hint of the best move or the best cube action
              press the Hint button in the tool bar or the menu option
              <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Hint</guimenuitem></menuchoice>.
              This will open a hint window.</para>
      <figure float="0" id="gnubg-fig_hint">
        <title>The hint window</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/hintwindow.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[hintwindow.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>This Hint window shows a list of all possible moves for the position
        and dice roll. The different moves are sorted by how <application>GNU
          Backgammon</application> ranks each move; there is one move on each
        line in the list. The rest of the numbers may look a bit complicated and
        cryptic but, once you learn what each number means, it isn't really that
        bad.</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para><emphasis>Rank</emphasis> is the number that shows
              <application>GNU Backgammon</application>'s rank of the move. All
            moves evaluated at a given ply are ranked above those evaluated at a
            lesser ply. If you use the 0, 1, 2, etc, buttons below the hint list
            to re-evaluate one or more moves, the moves will be moved
            accordingly. Therefore, for accurate results when re-evaluating a
            move that you are interested in, it is usually best to
              <emphasis>re-evaluate all moves above it in the list</emphasis>.
            (And slipping with the mouse and re-evaluating, e.g., a 3-ply move
            at 2-ply may make the move <emphasis>disappear</emphasis> down to
            the bottom of the list!) </para>
        </listitem>
        <listitem>
          <para><emphasis>Type</emphasis> is a description of the evaluation
            that was used to calculate the results. Cubeful means that it is
            taking into account the possibility that someone may double.
            Occasionally you may see several moves with the equity of -1.000,
            (See <emphasis>Equity</emphasis> below), despite significantly
            different winning percentiles. This is because it thinks that if any
            of these moves are played then the opponent will double and you
            should pass. The n-ply is the depth to which <application>GNU
              Backgammon</application> analysed the move. </para>
        </listitem>
        <listitem>
          <para><emphasis>Win</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be won by a
            single game, gammon or backgammon. </para>
        </listitem>
        <listitem>
          <para><emphasis>Wg</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be won by a
            gammon or backgammon. </para>
        </listitem>
        <listitem>
          <para><emphasis>Wbg</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be won by a
            backgammon. </para>
        </listitem>
        <listitem>
          <para><emphasis>Lose</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be lost by a
            single game, gammon or backgammon. (Notice that this number is equal
            to 1 - Win) </para>
        </listitem>
        <listitem>
          <para><emphasis>Lg</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be lost by a
            gammon or backgammon. </para>
        </listitem>
        <listitem>
          <para><emphasis>Lbg</emphasis> is the fractions of games that
              <application>GNU Backgammon</application> thinks will be lost by a
            backgammon. </para>
        </listitem>
        <listitem>
          <para><emphasis>Equity</emphasis> is the overall evaluation of the
            position by the program, after considering the different win/loss
            percentiles, the cube position, and the match score. A 1.000 would
            mean that you are expected to win a point, a 0.000 would mean that
            it is roughly equal, and a -1.000 that you are expected to lose a
            point. When the evaluation is cubeful this number is not computable
            by the win/loss brake down of the previous columns. </para>
        </listitem>
        <listitem>
          <para><emphasis>Diff.</emphasis> is the difference in equity,
            perceived in comparison to the top ranked move. </para>
        </listitem>
        <listitem>
          <para><emphasis>Move</emphasis> is the move being evaluated. In the
            case of a red line, it is the move that was played. </para>
        </listitem>
      </orderedlist>
    </sect3>
    <sect3 id="gnubg-hint_manual_cube">
      <title>Getting cube decision hints while playing</title>
      <para>If you're thinking about a cube decision before rolling you can
        press the same Hint button in the toolbar, as you pressed when you
        wanted checker play hint. The hint window will again appear, but this
        time it will look a bit different and it will show a hint of the correct
        cube decision.</para>
      <figure float="0" id="gnubg-fig_cubehint">
        <title>The cube hint window</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/hintcubewindow.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[hintcubewindow.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>The first lines is the window dialog shows the evaluation depth, and
        the cubeless equity with the evaluated probabilities. This equity is
        compensated for the match score. The cubeless equity for a money game,
        where the the calculation of equity is not compensated for match score,
        is also reported.</para>
      <para>Next follow three lines with cubeful equities. In figure above, the
        cubeful equity for the player on roll for not doubling at this turn, is
        +0.123. The equity for a double and the opponent passing is (of course)
        +1.000, since the player then will win one point. (The number is
        normalized to cube value of one, so even if it is a redouble to 4 or 8
        or higher, the cubeful equity for double/pass is still +1.000 for the
        doubler.) The third number in figure above is the cubeful equity for the
        player doubling and the opponent accepting the double. The different
        option will be listed in order with the best option highest. The number
        right to the listed equities is the differences from the cube decision
        considered best.</para>
      <para>The last line states the best considered cube action. In the figure
        above, <application>GNU Backgammon</application> considers the best cube
        action to be No double, take. When percentage number right to the proper
        cube action, is a number which indicates the <emphasis>bluff</emphasis>
        potential. It is the necessary percentage chance you think you can bluff
        your opponent into passing the cube to make the double theoretically
        correct. This number is only available when the position is considered
        No double, take or Too good to double, pass.</para>
</sect3>
    <sect3 id="gnubg-hint_button">
      <title>The hint tool buttons</title>
      <para>As you may see in both figures above, there is a set of buttons
        below the move list or cube analysis. Here follows a short description
        of what each of the buttons does:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para><emphasis>Eval</emphasis> will evaluate the selected moves, or
            the cube decision with the current evaluation setting. </para>
        </listitem>
        <listitem>
          <para><emphasis>...</emphasis> will open the evaluation setting
            dialog. You can then modify the evaluation setting. More about
            evaluation settings in the next chapter. </para>
        </listitem>
        <listitem>
          <para><emphasis>0 1 2 3 4</emphasis> will evaluate the selected moves
            or cube decision at cubeful 0-ply or cubeful 1-ply or cubeful 2-ply
            and so on. </para>
        </listitem>
        <listitem>
          <para><emphasis>Rollout</emphasis> will start a rollout ((A
              <emphasis>rollout</emphasis> is simply a Monte Carlo simulation of
            a backgammon position. More about rollouts in a later chapter.)) of
            the selected moves or cube decision. </para>
        </listitem>
        <listitem>
          <para><emphasis>...</emphasis> will open the rollout settings dialog.
            This dialog will be further described later in this manual. </para>
        </listitem>
        <listitem>
          <para><emphasis>MWC</emphasis> (Match Winning Chance). If this button
            is pressed the values in the hint window will be shown as the chance
            to win the whole match. If this button is unpressed or there is a
            money game that's played, the values in the hint window is reported
            as Equity. Notice, The equity in a match is actually a recalculation
            from match winning chance to equity. This recalculated number is
            often referred to as EMG, Equivalent to Money Game. The EMG number
            is comparable to the equity in a money game, and are therefore
            labeled 'Equity'. </para>
        </listitem>
        <listitem>
          <para><emphasis>Show</emphasis> will show the board as it would be
            after the selected move is made. The button is only available in the
            checker play hint window. </para>
        </listitem>
        <listitem>
          <para><emphasis>Move</emphasis> will make the move selected in the
            list. It's also possible to make a move directly from the list by
            double clicking on the move. The button is also available only in
            the checker play hint window. </para>
        </listitem>
        <listitem>
          <para><emphasis>Copy</emphasis> will copy the text of all selected
            moves to clipboard. </para>
        </listitem>
        <listitem>
          <para><emphasis>Temp. Map</emphasis> will show Sho Sengoku's
            temperature map. This map is further described later in the
            document. When this window remembers its size and position it will
            really become useful. </para>
        </listitem>
      </orderedlist>
      </sect3>
    </sect2>
    <sect2 id="gnubg-hint_tutor">
      <title>Tutor mode</title>
      <para>One of the greatest tools for learning, is Tutor Mode. Tutor mode
        can be activated by clicking <menuchoice><guimenu>Settings</guimenu><guimenuitem>Options...</guimenuitem></menuchoice> and then click on the Tutor flag. Activate Tutor Mode by
        checking the Tutor mode check box.</para>
      <figure float="0" id="gnubg-fig_tutor">
        <title>The tutor window</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/tutor.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[tutor.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>In Tutor Mode, <application>GNU Backgammon</application> will
        analyse your moves and/or cube decisions and compare them with its
        choices. You set the threshold for its alerts, for example, if you set
        it for bad then it will only warn you when you make a bad mistake. It
        will then allow you to re-examine your choice, go right ahead with it,
        or provide a 'hint' - essentially, showing you its analysis.</para>
      <para>The tutor can give warnings on both cube decisions and checker play.
        If you want the tutor to only warn on cube decisions, you can uncheck
        the box for the Checker play. Likewise, if you want it to only warn on
        checker play decisions, you can uncheck the box for the Cube decisions.</para>
      <figure float="0" id="gnubg-fig_tutorwarn">
        <title>The tutor warning window</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/tutorwarning.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[tutorwarning.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>In the above figure, you can see a warning dialog from the tutor
        mode. If you press the button labeled Play anyway, the move you made
        will be kept and the game will continue. If you press the Rethink
        button, the dialog will close and the checkers that you moved will be
        returned to their original positions. You can then rethink the position
        and try an alternative move. Keep doing this until the Tutor accepts
        your move as being good enough. Alternatively you can press the Hint
        button to show the hint window with its list of possible moves and their
        evaluations. Finally, if you press the End Tutor Mode button, the dialog
        will close and turn Tutor Mode off.</para>
      <para>A similar warning window will also appear for poor cube
      handling.</para>
    </sect2>
  </sect1>
  <sect1 id="gnubg-edit">
    <title>Setting up a position</title>
    <para>Think about the Friday night chouette where there was this tough
      choice between two move candidates. Which move was the best? Or what about
      that match score cube decision from the weekend tournament. Wouldn't it be
      nice to be able to set up the position in <application>GNU
      Backgammon</application> and ask for its opinion? This is possible in
        <application>GNU Backgammon</application>, and it's one of the features
      that really can give you the answer to a lot of questions, and in that way
      give you a better understanding of the game.</para>
    <sect2 id="gnubg-edit_entering">
      <title>Entering Edit mode</title>
      <para>To set up a position, you have to be in <emphasis>Edit
        mode</emphasis>. To enter Edit mode you simply click the Edit button in
        the tool bar. There is currently no keyboard shortcut or menu item for
        entering edit mode. The Edit button is a toggle button and you will stay
        in edit mode until you release the button by clicking it again.</para>
      <para>If your Edit button in the toolbar is disabled it is because there
        is no game or match in progress. With the current state of
          <application>GNU Backgammon</application> there must be a game or
        match in progress to be able to enter edit mode. (This may change in the
        future.) If there is no game in progress and you want to set up a
        position, you can simply start a new game or match by clicking New in
        the toolbar.</para>
      <para>When you are in edit mode you will see the the text (Editing) in the
        match information box below the board.</para>
    </sect2>
    <sect2 id="gnubg-edit_edit">
      <title>Editing</title>
      <para>Setting up a position is basically done by editing the current
        position. The editing it self is controlled by clicking different areas
        of the board and may not be obvious at first hand.</para>
    </sect2>
    <sect2 id="gnubg-edit_clear">
      <title>Clearing the board</title>
      <para>In edit mode you can easily clear the board by clicking in one of
        the bearoff trays. It's often easier to start setting up a position with
        a empty board, so this feature is really handy. When you click on one of
        the bearoff tray, all checkers will be moved to the bearoff.</para>
      <figure float="0" id="gnubg-fig_clear">
        <title>Click in the one of the areas marked with a red ellipse to clear
          the board.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/clearboard.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[clearboard.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>You can also just as easy generate the initial position by clicking
        the opposite trays when in edit mode. Clicking in one of these trays
        puts all checkers back to the initial position.</para>
      <figure float="0" id="gnubg-fig_initpos">
        <title>Click in the one of the areas marked with a red ellipse to get to
          the initial position.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/initialboard.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[initialboard.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>Note that the bearoff trays change side when the board is displayed
        with clockwise movement.</para>
    </sect2>
    <sect2 id="gnubg-edit_quick">
      <title>Quick edit</title>
      <para>The default method of editing a position is called <emphasis>Quick
          edit</emphasis>. It's based on clicking on the point where you want to
        place checkers. The number of checkers placed on the point is depending
        on where you click, for example if you want to place 3 checkers on a
        point, clicking on the location where the third checker would go places
        3 checkers. This method should be familiar to Snowie users.</para>
      <para>Clicking with the left button places checkers for player1, clicking
        with the right button places checkers for player2. If you want to place
        more than 5 checkers, click multiple times on the tip of the point. To
        clear a point, click on the border of the board below or above the point
        - depending on if the point is in the lower or top half of the board.
        The bar works just like normal points - the more you click to the middle
        of the bar, the more checkers will be placed there.</para>
    </sect2>
    <sect2 id="gnubg-edit_drag">
      <title>Editing by drag and drop</title>
      <para>There is also a different way of editing the checker positions. You
        can drag and drop checkers around the board while you're holding down
        the Ctrl key on your keyboard. Press the Ctrl key and hold it down. Then
        left-click the checker you want to drag to another point and drag it
        with the mouse, (while holding down the Ctrl key and the left mouse
        button), to the destination point. You can drag checkers to open points
        or to points where you have checkers of the same color. You can also
        'hit' opponent blots with the drag and drop edit method.</para>
      <para>This method of editing comes handy when there is just a small
        adjustment to be done in the position.</para>
    </sect2>
    <sect2 id="gnubg-edit_turn">
      <title>Setting the player on turn</title>
      <para>The player on turn can be set by clicking the small checker icons
        below the board. See figure below.</para>
      <figure float="0" id="gnubg-fig_turn">
        <title>Clicking the White checker image will set White on turn, clicking
          the Black image will set Black in turn.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/setturn.png"/>
          </imageobject>
	    <textobject>
		    <phrase>[[initialboard.png]]</phrase>
	    </textobject>
        </mediaobject>
      </figure>
      <para>Note that setting the turn sets the turn before the dice has been
        rolled. If there is a dice present at the board, setting the turn will
        remove the dice rolled. In this way you can set up a position to be a
        cube decision evaluation instead of a move decision evaluation.</para>
      <para>The turn can also be set by choosing <menuchoice><guimenu>Game</guimenu><guimenuitem>Set turn</guimenuitem></menuchoice>. Both these methods for setting the player on turn can
        also be used without being in edit mode.</para>
    </sect2>
    <sect2 id="gnubg-edit_dice">
      <title>Setting the dice</title>
      <para>You can set the dice for a player by clicking in the middle part of
        the board where you usually click when you roll the dice while playing.
        Click in the middle of the right playing area to set the dice for player
        0, the bottom player. Click the left dice rolling area to set the dice
        for player 1, the top player. Once you click one of these areas the dice
        selection widget will appear and you can select a dice roll by clicking
        on a dice pair.</para>
      <figure float="0" id="gnubg-fig_dice">
        <title>Click inside the red rectangle to set the dice for Black. Click
          inside the green rectangle to set the dice for White.</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/setdice.png"/>
          </imageobject>
	  <textobject>
		  <phrase>[[setdice.png]]</phrase>
	  </textobject>
        </mediaobject>
      </figure>
      <para>Setting the dice in edit mode sets both dice and the player on turn.
        Setting the dice for player 0, will make player 0 on turn with that
        specific dice roll to play.</para>
      <para>This method for setting the dice roll only works in edit mode. If
        you're not in edit mode you can set the dice by choosing <menuchoice><guimenu>Game</guimenu><guimenuitem>Set dice...</guimenuitem></menuchoice> from the menu, however this will set the dice for the
        player on turn.</para>
    </sect2>
    <sect2 id="gnubg-edit_cube">
      <title>Setting the cube</title>
      <para>Setting the cube is quite simple while you're in edit mode. Simply
        click the cube in the board and the cube selection widget appears.</para>
      <para>Selecting a cube in the first row, where the number is displayed
        up-side-down, the top player will be the cube owner. The value of the
        cube will be the value of the cube you click in the widget. Note that
        the unturned cube is the leftmost cube labeled 64, just as it usually is
        on real doubling cube.</para>
    </sect2>
    <sect2 id="gnubg-edit_score">
      <title>Setting the score</title>
      <para>Very often i backgammon the match score does matter on how the
        position is evaluated. <application>GNU Backgammon</application>'s
        evaluation algorithms does take the score into account. You can
        therefore adjust the the match length and the score to each player while
        you're in edit mode.</para>
      <para>In the figure you see that the score fields are editable while
        you're in edit mode. Insert the desired match score for each player in
        these fields. Player 0, the top player, has the left score field and
        player 1, the bottom player, has the right score. You can also set the
        match score in the in the match field to the right. There is also a box
        to tick whenever the position is from a Crawford game.</para>
      <para>If you want the computer to do a money game evaluation of the
        position, you should set the match score to 0 (zero).</para>
    </sect2>
    <sect2 id="gnubg-edit_exit">
      <title>Exiting Edit mode</title>
      <para>Before you can start analysing the position you have to exit edit
        mode. This is done by releasing the Edit button in the toolbar by
        clicking it. Note that editing a position destroys your game record with
        no warning, so it might be an idea to save your match if you want to
        keep it.</para>
    </sect2>
    <sect2 id="gnubg-edit_analyse">
      <title>Analysing the position</title>
      <para>After you have successfully set up the position you desire, you can
        now analyse the position. You can click Hint in the toolbar to get the
        best move of cube decision in the same way as described in the chapter
        called <xref linkend="gnubg-playing"/>. Hint, rollouts and evaluations done
        from the hint window will not be saved if you try to save the position.
        If you want to analyse the position and then be able to save the
        position and the analysis results you should rather do a move and then
        click back to the move and then choose <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Analyse move</guimenuitem></menuchoice> for the menu. You can then work in the analysis pane on
        the right side instead of in the hint window.</para>
      <para>You can enter checkers on a point by clicking on the point. Notice
        the amount of checkers you add on a point, depends on where on that
        point you click. Left mouse button, black checkers and right mouse
        button, red checkers. (assuming you didn't change the colors). You will
        get used to this editing. and it makes it much faster to set up a
        position.</para>
      <para>See also <ulink url="http://www.bkgm.com/rgb/rgb.cgi?view+1098">Albert Silver's post on GammOnLine</ulink>
      </para>
    </sect2>
  </sect1>
  <sect1 id="gnubg-matches">
    <title>Working with matches</title>
    <sect2 id="gnubg-matches_ras">
      <title>Retrieving and storing backgammon files</title>
      <sect3 id="gnubg-matches_ras_sgff">
        <title>The Smart Game Format</title>
        <para><application>GNU Backgammon</application> uses the Smart Game
          Format (SGF) to store games, matches, sessions and positions. SGF is
          used in as a standard format for several other turn based games. The
          SGF files can store all the rolls and moves and cube decisions as well
          as commentary and analysis.</para>
        <para> A game that uses SGF extensively is Go. The format is described
          at <ulink url="http://www.red-bean.com/sgf/">this site</ulink>.
        </para>
      </sect3>
      <sect3 id="gnubg-matches_opening">
        <title>Opening and importing matches</title>
        <para>Since version 0.16 the GUI recognizes all importable files
          automatically (with the exception of the FIBS format). To open or
          import a file choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open</guimenuitem></menuchoice>. A file dialog box will appear where you can select the
          file and the dialog will inform you of the recognized format, if the
          file is importable. You can also use the keyboard shortcut Ctrl-O, or
          the tool bar button labeled Open, to open the file dialog box
          directly.</para>
        <para>It is still possible to import an unrecognized file by using the
          underlying command line interface. Enable the command pane by choosing <menuchoice><guimenu>View</guimenu><guimenuitem>Command</guimenuitem></menuchoice>. In the command pane type in <command>import oldmoves
            &lt;filepath&gt;</command> to import, e.g., an oldmoves fibs
          formatted file.</para>
        <para>The following table contains the supported formats and the
          corresponding commands for manual import of a file.</para>
        <informaltable>
          <tgroup cols="2">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <tbody>
              <row>
                <entry>FIBS oldmoves format</entry>
<entry> <command>import oldmoves &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>Gamesgrid Save Game</entry>
<entry> <command>import sgg &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>GammonEmpire Game</entry>
<entry> <command>import empire &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>Jellyfish Game</entry>
<entry> <command>import gam &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>Jellyfish Match</entry>
<entry> <command>import mat &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>Jellyfish Position</entry>
<entry> <command>import pos &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>PartyGammon Game</entry>
<entry> <command>import party &lt;filepath&gt;</command> </entry> </row>
              <row>
                <entry>Snowie Text</entry>
<entry> <command>import snowietxt &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>TrueMoneyGames</entry>
<entry> <command>import tmg &lt;filepath&gt;</command> </entry>
</row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>Jellyfish Match is not formally defined and software exporting matches to this format often produce minor discrepancies.
          <application>GNU Backgammon</application> tries to cater to most of them automatically.
        </para>
        <para>Online sites do not always create their .mat files with the you as player 1, the one playing towards the bottom of the board.
          To have these matches converted to be displayed in the natural way, you can use de CLI command
          <command>set aliases &lt;player name 1&gt;;&lt;player name 2&gt;;[&lt;etc...&gt;]</command>
          <application>GNU Backgammon</application> will swap the players as needed so that player names matching these aliases are always imported as player 1.
        </para>
      </sect3>
      <sect3 id="gnubg-matches_saving">
        <title>Saving and exporting positions, games or matches</title>
        <para>If you have played or imported a match into <application>GNU
            Backgammon</application>, and wish to save your efforts, you can
          choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></menuchoice>. A file dialog box will appear and you can type in a
          file name or keep the suggested default file name. (The suggested
          default file name contains the date, the players name and the length
          of the match). This will save the whole match of the current match or
          session. If there is any analysis or commentary available this will
          also be saved to the file. You can also use the tool bar button
          labeled Save to open the file dialog box directly. There is also a
          keyboard shortcut, Ctrl-S, for saving a match or session.</para>
        <para>The export dialog is accessed by choosing <menuchoice><guimenu>File</guimenu><guimenuitem>Export</guimenuitem></menuchoice> This dialog is similar to the save dialog. Again you may
          choose a different filename and whether to export an entire match, a
          game or a position. Then you must choose an export format as well.
          Notice some file formats only supports export of matches and some only
          supports position. Only when a legal combination is chosen will ending
          the dialog be possible. The following table contains the supported
          file formats and the corresponding commands for export. Again notice
          that with some formats only some of M(atch), G(ame), P(osition) is
          allowed. For example to export a Jellyfish position you would issue
          the command <command>export position pos
          &lt;filepath&gt;</command></para>
        <informaltable>
          <tgroup cols="2">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <tbody>
              <row>
                <entry>Encapsulated Postscript</entry>
<entry> <command>export &lt;P&gt; eps &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>HTML</entry>
<entry> <command>export &lt;MGP&gt; html &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>Jellyfish Game</entry>
<entry> <command>export &lt;G&gt; gam &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>Jellyfish Match</entry>
<entry> <command>export &lt;M&gt; mat &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>Jellyfish Position</entry>
<entry> <command>export &lt;P&gt; pos &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>LaTeX</entry>
<entry> <command>export &lt;MG&gt; latex &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>PDF</entry>
<entry> <command>export &lt;MG&gt; pdf &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>Plain Text</entry>
<entry> <command>export &lt;MGP&gt; text &lt;filepath&gt;</command> </entry>
              </row>
              <row>
                <entry>Portable Network Graphics</entry>
<entry> <command>export &lt;P&gt; pdf &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>PostScript</entry>
<entry> <command>export &lt;MG&gt; postscript &lt;filepath&gt;</command> </entry>
</row>
              <row>
                <entry>Snowie Text</entry>
<entry> <command>export &lt;P&gt; snowietxt &lt;filepath&gt;</command>
                </entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <sect4 id="gnubg-matches_saving_html">
          <title>HTML export</title>
          <para><application>GNU Backgammon</application> can export the current
            position, game, match or session in HTML if you wish to publish it
            on the web. </para>
          <para><application>GNU Backgammon</application> exports in validating
            XHTML 1.0 with the use of CSS style sheets. You may add your own
            style sheet to the exported HTML files if you wish to override the
            default layout, e.g., change colors or fonts.</para>
          <para>The board is made up from hundreds of pictures. Currently, you
            can choose between three different sets of pictures:</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>the BBS images used by Kit Woolsey's GammOnLine e-magazine,
                Danish Backgammon Federation's web-based discussion group and
                others </para>
            </listitem>
            <listitem>
              <para>the fibs2html images used by the Joseph Heled's program
                  <ulink url="http://fibs2html.sourceforge.net/">fibs2html</ulink>
              </para>
            </listitem>
            <listitem>
              <para>images generated by <application>GNU
                Backgammon</application> itself. </para>
            </listitem>
          </orderedlist>
          <para>The images generated by <application>GNU
            Backgammon</application> will use your current board design in
              <application>GNU Backgammon</application>, and honors your
            settings on clockwise or anti-clockwise movement and board numbering
            (on, off, dynamic).</para>
          <para>If you export a match or session to HTML, <application>GNU
              Backgammon</application> will write the individual games to
            separate files. For example, if you export to file foo.html the
            first game is exported to foo.html, the second game to foo_002.html,
            the third game to foo_003.html and so forth.</para>
          <para>The output from the HTML export can be customized. For example,
            it's possible to leave out the analysis or parts of the analysis.
            Also, you may enter a specific URL to the pictures used to compose
            the board which is useful for posting positions on web-based
            discussion groups such as Kit Woolsey's GammOnLine, the Danish
            Backgammon Federation's Debat Forum.</para>
          <para>If you want to have html images locally on your computer, you
            can have <application>GNU Backgammon</application> generate these.
            The html images will be generated based on the current appearance
            settings. You can also control the size of the images in the export
            settings dialog (To get the export settings dialog you can select in
            the menu <menuchoice><guimenu>Settings</guimenu><guimenuitem>Export...</guimenuitem></menuchoice>. Select the size of your html images at the bottom
            right in this dialog</para>
          <para>To start the generation of the html images, select in the menu <menuchoice><guimenu>File</guimenu><guimenuitem>Export</guimenuitem><guimenuitem>HTML images...</guimenuitem></menuchoice>. In the file dialog box, you can select a
              <emphasis>directory</emphasis> where the images will be generated.
            The images are stored in PNG format.</para>
          <para>To generate images for the command line, use the command:</para>
          <para>export htmlimages directory</para>
          <para>where directory is the directory where you want your images to
            be created.</para>
        </sect4>
        <sect4 id="gnubg-matches_saving_latex">
          <title>LaTeX export</title>
          <para><application>GNU Backgammon</application> can export games,
            match and positions to the document typesetting system LaTeX. For
            exporting a match or session to LaTeX</para>
          <para>The LaTeX export will export all board diagrams and analysis if
            available. The produced documents can therefore be quite large. Note
            that the LaTeX file produced needs the eepic package. You can get
            this package at your nearest CTAN mirror((The produced LaTeX file
            also needs epic, textcomp and ucs, but these are more common in
            LaTeX distributions so you probably already have these.)).</para>
          <para>You can not export a position to LaTeX. (At least not yet!)
            However, you can export a position to EPS and include this EPS file
            in your LaTeX document.</para>
        </sect4>
      </sect3>
    </sect2>
    <sect2 id="gnubg-matches_entering">
      <title>Entering live tournament matches</title>
      <para>It's possible to enter match transcriptions into <application>GNU
          Backgammon</application>. It's not very difficult. Presuming you're
        using the GUI, do this:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Start a match of any length, pressing the New button, and select
            Human-Human and manual dice. </para>
        </listitem>
        <listitem>
          <para>To select the opening roll, click on the right dice pair in the
            dice selection window that appears. The left die in the dice pair is
            the die that's rolled by player 0, or the player at the top. The
            right die is the die that will be rolled by player 1 or the bottom
            player. So if you select for example the 53 dice combination it
            means that player 0 rolls a 5 and player 1 rolls a 3, and player 0
            is therefore beginning this game. However, if you select the 35 dice
            combination it means that player 0 rolls a 3 and player 1 rolls a 5.
            Player 1 will therefore begin when you select 53 instead of 35.
          </para>
        </listitem>
        <listitem>
          <para>To change the names, use the Edit button at the top. If you want
            to enter information such as the name of the Annotator, date,
            locale, etc. go to the Game menu and choose Match Information.
          </para>
        </listitem>
        <listitem>
          <para>To enter written comments, you first have to play the move, and
            then go back to the move in the move list to be able to use the
            Commentary pane (feel free to close the Messages pane from the
            Windows menu). Don't forget to save the match every once in a while.
          </para>
        </listitem>
        <listitem>
          <para>One comment: when entering the Cube commentary of a cube play
            (meaning it was turned), select the Take/Pass decision to enter the
            commentary. The reason is that if you export it after, and didn't do
            this, the commentary appears before the cube decision and not after
            as it should. </para>
        </listitem>
      </orderedlist>
      <para>Tip: while entering the match, if you wish to see <application>GNU
          Backgammon</application>'s opinion while you are entering the moves,
        play the move on the board and press the Hint button in the tool bar. In
        the latest builds, if you have done this, the results will then be
        placed with the move so that it means it is already analysed when you
        run the full match analysis. Mind you, it will preserve the information
        even if you ran a deeper 3-ply or 4-ply from the Hint window. After
        playing the move and confirming the dice, go back in the move list and
        click on the move, and you'll see the analysis appear in the Analysis
        pane as it should.</para>
      <sect3 id="gnubg-matches_entering_illegal">
        <title>Entering illegal moves</title>
        <para>It's possible to enter illegal moves with a little trick. This is a
        step by step guide for the example: If a player rolls 41 and the player
        makes an illegal move as the dice showed 31.</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Manually enter the roll which was rolled. 41. </para>
          </listitem>
          <listitem>
            <para>Do a legal move with 41 (this is just to get the analysis of the
            roll, and the best legal move.) </para>
          </listitem>
          <listitem>
            <para>Click the dice to pick them up and complete the move. </para>
          </listitem>
          <listitem>
            <para>Now, before you roll the opponents dice, click the Edit button.
          </para>
          </listitem>
          <listitem>
            <para>While holding down the CTRL-button on your keyboard, you can now
            drag the checkers to the resulting illegal position which was played
            over the board. </para>
          </listitem>
          <listitem>
            <para>Release the Edit button to exit edit mode. </para>
          </listitem>
          <listitem>
            <para>Make sure the right player is on turn, by clicking on the
            checker image for the player on roll, under the game board. </para>
          </listitem>
          <listitem>
            <para>Continue to enter the rest of the game. </para>
          </listitem>
        </orderedlist>
      </sect3>
    </sect2>
    <sect2 id="gnubg-matches_analysing">
      <title>Analysing matches</title>
      <para><application>GNU Backgammon</application> can analyse your matches
        for skill and luck. If you have an open match (as a result of playing,
        loading or importing), the analysis is started by choosing <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Analyse match</guimenuitem></menuchoice>. You should now see a progress bar at the bottom right
        corner of the main interface window while the computer is busy
        analysing. During this time you won't be able to interact with the
        program other than to quit the analysis. The analysis is complete when
        the progress bar disappears and you hear a small sound. Now, you would
        probably like to view the result of the analysis. This can be done in
        terms of overall statistics by choosing <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Match statistics</guimenuitem></menuchoice>, or in detail by browsing through the match. More on these
        subjects in the upcoming sections.</para>
      <para>You can also analyse just the current game, by choosing <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Analyse game</guimenuitem></menuchoice>. If you're only interested in the analysis of the current
        move, you can select <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Analyse move</guimenuitem></menuchoice>.</para>
      <sect3 id="gnubg-matches_analysing_settings">
        <title>Analysis settings</title>
        <para>You can configure how <application>GNU Backgammon</application>
        analysis the match or game for you. This can be configured in the dialog
        box that appears when choose <menuchoice><guimenu>Settings</guimenu><guimenuitem>Analysis</guimenuitem></menuchoice>.</para>
        <figure float="0" id="gnubg-fig_analyse">
          <title>Analyse settings dialog</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/analysesettings.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[analysesettings.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>In the top left frame in this dialog box, you can select what to
        analyse. <application>GNU Backgammon</application> is able to analyse
        three different properties in a match.</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Checker play </para>
          </listitem>
          <listitem>
            <para>Cube decisions </para>
          </listitem>
          <listitem>
            <para>Luck of each roll </para>
          </listitem>
        </orderedlist>
        <para>In addition you can have the analysis to analyse just one of the
        players, or both. There is also possible to set a limit of how many
        moves to be analysed at each position. When you're reviewing your match,
        the number of analysed moves will be limited to number in this field.
        However, if you want to analyse further moves in a particular position,
        it's not a problem to do that later. The move that was actually done in
        the match will be analysed even if it is ranked below the number of
        moves limit.</para>
        <para><application>GNU Backgammon</application> will also mark each move
        or cube decision with Doubtful, Bad and Very bad. You can adjust the
        limits in equity difference for which label to assign. This is done in
        the frame box to the left. Notice, currently the Good and Very good
        classes are not used.</para>
        <para>You can also adjust the classes for what <application>GNU
        Backgammon</application> considers lucky and unlucky rolls. The luck of
        a roll is defined as the difference of equity after the best move after
        rolled dice and the equity after best move averaged over all possible
        rolls.</para>
        <para>The right part of the dialog box is an evaluation setting for how
        each move or cube decision should be evaluated in the analysis. For an
        explanation of this settings, see the chapter called "[[Evaluation
        settings]]".</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-matches_review">
      <title>Reviewing matches</title>
      <sect3 id="gnubg-matches_review_record">
        <title>Game record</title>
        <para>When a match is analysed in <application>GNU
          Backgammon</application> you should open the <emphasis>game
          record</emphasis> window. Open this by checking <menuchoice><guimenu>Window</guimenu><guimenuitem>Game record</guimenuitem></menuchoice> on from the main menu. The game record window can also
          be docked into the right side panel. If you want it docked into the
          right side panel you should check on <menuchoice><guimenu>Window</guimenu><guimenuitem>Dock panels</guimenuitem></menuchoice>. The game record window shows a list of all the moves in
          the game. You can also navigate between the games and moves.</para>
        <figure float="0" id="gnubg-fig_record">
          <title>The Game record pane</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/gamerecord.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[gamerecord.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>The figure shows a typical game record list. The moves are shown
          in two columns. The left column shows the moves for player 0,the to
          player, and the right column shows the moves of player 1, the bottom
          player. You can navigate through the game with the arrow buttons at
          the top of the game record. The red buttons with the double arrows
          take you to the previous game or the next match. (Arrow pointing to
          the left takes you to the previous game, and the red arrow pointing to
          the right takes you to the next game.) The green buttons take you one
          move ahead in the game or one move back. The green arrow button
          pointing to the right take you to the previous move. The green arrow
          button pointing to the right take you to the next move or to the next
          dice roll. If your in the move list where the dice is not rolled, a
          click on this green Next button will show you the same position with
          the dice rolled. The last two buttons take you to the next marked
          move, or to the previous marked move. The green arrow button with a
          question mark pointing to the left will take you to the previous
          marked move. The green arrow button with a question mark pointing to
          the right will take you to the next marked move. You can also go to
          other games in the match or session by selecting the game in the game
          drop down menu. You can also go to a move directly by clicking that
          move in the game record list.</para>
        <para>There is also some keyboard shortcuts for navigating through the
          match. Page Down till take you to the next move and Page up will take
          you to the previous move.</para>
        <para>After a analysis some of the move in the game list will be marked.
          You will see some moves marked with <emphasis>?</emphasis> and some
          with <emphasis>?!</emphasis> and some with <emphasis>??</emphasis>.
          These marks means the same as the marks in normal chess notation.</para>
        <informaltable frame="all">
          <tgroup cols="2">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <tbody>
              <row>
                <entry>??</entry>
                <entry>a very bad move</entry>
              </row>
              <row>
                <entry>?</entry>
                <entry>a bad move</entry>
              </row>
              <row>
                <entry>?!</entry>
                <entry>a doubtful move</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>Note that it is the same marks for cube decisions as for checker
          moves. Nevertheless, checker moves marks are before the cube decisions
          marks. If no mark exists for checker move, the cube mark is separated
          by two spaces.</para>
        <para>In newer builds of <application>GNU Backgammon</application> the
          various moves also get a color code. The cube decisions are shown by
          the background color. The checkers move decisions are shown by the
          font color.</para>
        <informaltable frame="all">
          <tgroup cols="3">
            <tbody>
              <row>
                      <entry></entry>
                      <entry>Cube(background)</entry>
                      <entry>Move(font)</entry>
              </row>
              <row>
                      <entry>Very Bad</entry>
                <entry>Yellow</entry>
                <entry>Red</entry>
              </row>
              <row>
                      <entry>Bad</entry>
                <entry>Pink</entry>
                <entry>Blue</entry>
              </row>
              <row>
                      <entry>Doubtful</entry>
                <entry>Grey</entry>
                <entry>Green</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>The luck is also marked in the font</para>
        <informaltable frame="all">
          <tgroup cols="2">
            <tbody>
              <row>
                      <entry>Luck</entry>
                <entry>Font</entry>
              </row>
              <row>
                      <entry>Very Lucky</entry>
                <entry>Bold</entry>
              </row>
              <row>
                      <entry>Very Unlucky</entry>
                <entry>Italics</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
      </sect3>
      <sect3 id="gnubg-matches_review_analysis">
        <title>Analysis panel</title>
        <para>You can also study your moves and cube decisions in more detail in
          the analysis window, or analysis panel if you have checked Dock panels
          in the Window menu. You can open this window by checking on <menuchoice><guimenu>Window</guimenu><guimenuitem>Analysis</guimenuitem></menuchoice>. If you have docked panels the analysis panel will
          appear under the game record. The analysis window is basically the
          same as the Hint window described in the "[[Playing a game or match]]"
          chapter.</para>
        <figure float="0" id="gnubg-fig_analysepane">
          <title>The Analyse pane</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/analysepane.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[analasyepane.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>In the figure you can see the analysis panel. At the top of the
          analysis panel you will see three pull-down menus. The leftmost
          pull-down menu is a comment on the cube decision. In the figure it is
          a position where the player didn't double and the <application>GNU
            Backgammon</application>'s analysis of this is empty. There was
          nothing wrong with not doubling in this position. The user can also
          override <application>GNU Backgammon</application>'s evaluation and
          mark the cube decision as 'Doubtful', 'Bad' or 'Very bad'. Note that
          the cube decision pull-down menu will only be visible when the player
          has the cube available.</para>
        <para>The next pull-down menu shows a simple analysis of the roll. The
          roll in this position was 32. <application>GNU
          Backgammon</application>'s evaluation of this dice roll is also empty.
          It shows that this particular roll was -.162 equity worse than the
          average roll. This means that the roll is a bit unlucky, but does not
          qualify for being marked as an unlucky roll. The rolls are marked in
          these categories: 'Very lucky', 'Lucky', 'Unlucky' and 'Very unlucky'.</para>
        <para>The rightmost pull-down menu, shows the move which was done. In
          this situation the move that was done was 3/off 2/off. This move did
          not qualify for any mark. Moves that <application>GNU
          Backgammon</application> don't like will be marked as 'Doubtful',
          'Bad' or 'Very bad'. The user can also override <application>GNU
            Backgammon</application>'s evaluation and mark the move manually
          with the pull-down menu.</para>
        <para>The rest of the analysis window is a notebook of two pages. The
          first page is the list of possible moves. The list is sorted in the
          ranked order with the best considered move at the top. The moves are
          sorted by equity or EMG. In the list in the figure there is only two
          possible moves. The move that was actually done in the match, is
          marked with red color. The only difference of this list of moves and
          the list of moves in the hint window, is that this list does not show
          the probabilities for each outcome of the game. If you want to see the
          probabilities of the different outcomes, you can click on the button
          labeled Details. This will then show you a list with these numbers.</para>
        <para>The other page of the notebook is the cube decision analysis. This
          analysis show exactly the same as in the Hint window described in the
          chapter called "[[Playing a game or match]]". Note that the cube
          decision page will only be available if there is a cube decision. It
          will not be visible if the cube is not available to the player.</para>
        <para>There is also a set of tool buttons in the analysis panel. These
          buttons does exactly the same as the tool buttons in the Hint window,
          which is described in the the chapter called "[[Playing a game or
          match]]".</para>
      </sect3>
      <sect3 id="gnubg-matches_review_stat">
        <title>Statistics</title>
        <para>You can get a summary of the analysis from the game, match, or
          session analysis. The game analysis is a summary for the current game
          whereas the match or session statistics is a summary of all the games
          in the match or session. The match analysis is available in the GUI
          from <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Match Statistics</guimenuitem></menuchoice> or at the bottom of exported files.</para>
        <sect4 id="gnubg-matches_review_stat_check">
          <title>Checker play statistics</title>
          <para>This section provides a summary of the checker play statistics.
            The following information is available</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>Total moves: The total number of moves in the match. </para>
            </listitem>
            <listitem>
              <para>Unforced moves: The number of unforced moves, i.e., all
                checker play decisions which had more than one legal move.
              </para>
            </listitem>
            <listitem>
              <para>Moves marked <emphasis>xxx</emphasis>: The number of moves
                marked <emphasis>very good</emphasis>, <emphasis>very
                bad</emphasis> etc. The analysis will mark moves <emphasis>very
                  bad</emphasis>, <emphasis>bad</emphasis> etc. based on the
                threshold you've defined in the analysis settings.
                  <application>GNU Backgammon</application> can currently not
                automatically mark moves, e.g., <emphasis>good</emphasis>, but
                you can mark moves <emphasis>good</emphasis> yourself. </para>
            </listitem>
            <listitem>
              <para>Error rate (total): The first number is the total amount of
                normalized equity that the player gave up during this game or
                match. The number in parenthesis is the un-normalized
                counterpart; for money play the all errors are multiplied with
                the value of the cube, and for match play the total match
                winning chance given up by the player is reported. </para>
            </listitem>
            <listitem>
              <para>Error rate (per move): The error rate per move is the total
                error rate divided by the number of <emphasis>unforced
                moves</emphasis>. Note that is different from Snowie 4 that
                defines the error rate per move as the total error rate divided
                by the total number of moves for both players, i.e., the sum of
                  <emphasis>total moves</emphasis> for both players. In general,
                your error rate per move will be lower in Snowie than in
                  <application>GNU Backgammon</application>. </para>
            </listitem>
            <listitem>
              <para>Checker play rating: <application>GNU
                Backgammon</application> will assign a rating for your checker
                play ranging from <emphasis>Awful!</emphasis> to
                  <emphasis>Supernatural</emphasis>. See the description for the
                overall rating below. </para>
            </listitem>
          </orderedlist>
        </sect4>
        <sect4 id="gnubg-matches_review_stat_luck">
          <title>Luck analysis</title>
          <para>This section provides information about how Ms. Fortuna
            distributed her luck. The following information is available:</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>Rolls marked <emphasis>xxx</emphasis>: The number of moves
                marked <emphasis>very lucky</emphasis>,
                <emphasis>lucky</emphasis> etc. Moves marked <emphasis>very
                  lucky</emphasis> are huge jokers that improve your equity with
                more the +0.6 relative to the average equity. <application>GNU
                  Backgammon</application> normally uses cubeful 0-ply
                evaluations to calculate the luck, but you can change that under
                the analysis settings. See below for a complete overview of what
                is considered <emphasis>very lucky</emphasis>,
                <emphasis>lucky</emphasis>, etc. </para>
            </listitem>
            <listitem>
              <para>Luck rate (total): The total luck for this game or match
                reported both normalized and unnormalized. </para>
            </listitem>
            <listitem>
              <para>Luck rate (per move): The luck rate per move reported both
                normalized and unnormalized. </para>
            </listitem>
            <listitem>
              <para>Luck rating: Based on the luck rate per move
                  <application>GNU Backgammon</application> will assign you a
                humorous luck rating. See below for the possible ratings.
              </para>
            </listitem>
          </orderedlist>
          <para>Thresholds for marking of rolls:</para>
          <informaltable frame="all">
            <tgroup cols="2">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>Deviation of equity from average</entry>
                  <entry>Roll is marked</entry>
                </row>
                <row>
                  <entry>&gt; 0.6</entry>
                  <entry>very lucky</entry>
                </row>
                <row>
                  <entry>0.3 - 0.6</entry>
                  <entry>lucky</entry>
                </row>
                <row>
                  <entry>-0.3 - 0.3</entry>
                  <entry>unmarked</entry>
                </row>
                <row>
                  <entry>-0.6 - -0.3</entry>
                  <entry>unlucky</entry>
                </row>
                <row>
                  <entry>&lt; -0.6</entry>
                  <entry>very unlucky</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para>Luck ratings:</para>
          <informaltable frame="all">
            <tgroup cols="2">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>Normalized luck rate per move</entry>
                  <entry>Luck rating</entry>
                </row>
                <row>
                  <entry>&gt; 0.10</entry>
                  <entry>Cheater :-)</entry>
                </row>
                <row>
                  <entry>0.06 - 0.10</entry>
                  <entry>Go to Las Vegas immediately</entry>
                </row>
                <row>
                  <entry>0.02 - 0.06</entry>
                  <entry>Good dice, man!</entry>
                </row>
                <row>
                  <entry>-0.02 - 0.02</entry>
                  <entry>none</entry>
                </row>
                <row>
                  <entry>-0.06 - -0.02</entry>
                  <entry>Better luck next time</entry>
                </row>
                <row>
                  <entry>-0.06 - -0.10</entry>
                  <entry>Go to bed</entry>
                </row>
                <row>
                  <entry>&lt; -0.10</entry>
                  <entry>Haaa-haaa</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
        </sect4>
        <sect4 id="gnubg-matches_review_stat_cube">
          <title>Cube statistics</title>
          <para>This section provides a summary of the cube decision statistics:
            the number of cube decisions, missed doubles, etc.</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>Total cube decisions: The total number of cube decisions,
                i.e., the sum of no-doubles, doubles, takes, and passes. </para>
            </listitem>
            <listitem>
              <para>Close or actual cube decisions: Similar to Total cube
                decisions, except that no-doubles are only included if they're
                considered <emphasis>close</emphasis>. <application>GNU
                  Backgammon</application> considers a cube decision close if
                the relevant equities are within 0.16 from each other or if the
                position is too good. </para>
            </listitem>
            <listitem>
              <para>Doubles, Takes, Passes: The total number of doubles, takes,
                and passes in the game or match. </para>
            </listitem>
            <listitem>
              <para>Missed doubles around DP, Missed doubles around TG: The
                number of missed doubles around the double point and too good
                point respectively. If the equity is below 0.95 the position is
                considered to be around the double point else it considered to
                be around the too good point. If you miss doubles around the
                double point, it usually means that you double too late, whereas
                missed doubles around the too good point means that you're too
                greedy and play on for gammon when the position is
                <emphasis>not</emphasis> too good. </para>
            </listitem>
            <listitem>
              <para>Wrong doubles around DP, Wrong doubles around TG: The number
                of wrong doubles around the double point and too good point,
                respectively. If you have wrong doubles around the double point
                that generally means that you double too early where you really
                should hold the cube, whereas wrong doubles around the too good
                point means that you double positions where you really should
                play on for a gammon or backgammon. </para>
            </listitem>
            <listitem>
              <para>Wrong takes, Wrong passes: The total number of wrong takes
                and passes, respectively. </para>
            </listitem>
            <listitem>
              <para>Error rate (total): The accumulated cube errors for this
                game or match reported both normalized and unnormalized. </para>
            </listitem>
            <listitem>
              <para>Error rate (per cube decision): The error rate per cube
                decision is the total error rate divided by the number of
                  <emphasis>close or actual cube decisions</emphasis>. Note that
                is different from Snowie 4 that defines the error rate per cube
                decision as the total error rate divided by the total number of
                moves for both players. In general, your error rate per cube
                decision will be lower in Snowie than in <application>GNU
                  Backgammon</application>. Note that the reported number is
                multiplied by 1000 in the default settings. </para>
            </listitem>
            <listitem>
              <para>Cube decision rating: <application>GNU
                Backgammon</application> will assign a rating for your cube
                decisions ranging from <emphasis>Awful!</emphasis> to
                  <emphasis>Supernatural</emphasis>. See the description for the
                overall rating below. </para>
            </listitem>
          </orderedlist>
        </sect4>
        <sect4 id="gnubg-matches_review_stat_overall">
          <title>Overall rating</title>
          <para>The last section is the overall summary.</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>Error rate (total): The accumulated checker play and cube
                decision errors reported by normalized and unnormalized. </para>
            </listitem>
            <listitem>
              <para>Error rate (per decision): The error rate per decision is
                the total error rate divided by the number of non-trivial
                decisions (i.e., the sum of <emphasis>unforced moves</emphasis>
                and <emphasis>close or actual cube decisions</emphasis>). Again,
                please note that is different from Snowie 4 that defines the
                error rate per decision as the total error rate divided by the
                total number of moves for both players. In general, your error
                rate per move will be lower in Snowie than in <application>GNU
                  Backgammon</application>. An investigation of approximately
                300 matches showed the on average the <application>GNU
                  Backgammon</application> error rate with be 1.4 times higher
                than your Snowie 4 error rate. </para>
            </listitem>
            <listitem>
              <para>Equivalent Snowie error rate: For easy comparison
                  <application>GNU Backgammon</application> will also print the
                total error rate calculated by the same formula as Snowie 4.
              </para>
            </listitem>
            <listitem>
              <para>Overall rating: Based on your normalized error rate per move
                GNU Backgammon will assign you a rating ranging from
                  <emphasis>Awful!</emphasis> to
                <emphasis>Supernatural</emphasis>. See the table below for the
                thresholds. </para>
            </listitem>
            <listitem>
              <para>Actual result: The actual result of the game or match. For
                money game this is simply the number of points won or lost
                during the game or match. For match play the number is
                calculated as 50% added to the result of the game or match in
                MWC. For example, losing a match or winning a match corresponds
                to an actual result of 0% and 100%, respectively. Winning 1
                point in the first game of 7 point match is worth 6% using Kit
                Woolsey's match equity table, hence the actual result is 56%.
              </para>
            </listitem>
            <listitem>
              <para>Luck adjusted result: The luck adjusted result is calculated
                as the <emphasis>actual result</emphasis> plus the total
                unnormalized luck rate. This is also called <emphasis>variance
                reduction of skill</emphasis> as described in Douglas Zare's
                excellent article <ulink url="http://www.bkgm.com/articles/Zare/HedgingTowardSkill.html">
                Hedging Toward Skill</ulink>. This should give an unbiased
                measure of the strengths of the players. </para>
            </listitem>
            <listitem>
              <para>MWC against current opponent: For match play
                  <application>GNU Backgammon</application> will calculate your
                MWC against the current opponent. The number is calculated as
                50% - your total unnormalized error rate + your opponent's total
                unnormalized error rate. If your opponent is really lucky but
                plays rather bad, this number can become larger than 100%, since
                he due to the extra luck has the possibly to give up even more
                MWC. However, <application>GNU Backgammon</application> will
                report this number as 100%, and 0% for the opposite situation.
                Note that this number is biased towards the analysing bot, e.g.,
                a 0-ply analysis a game between GNU Backgammon 2-ply and 0-ply
                will suggest that 0-ply is a favorite, which it is clearly not.
                For an unbiased measure use the <emphasis>luck adjusted
                result</emphasis> above. </para>
            </listitem>
          </orderedlist>
          <para>Threshold for ratings:</para>
          <informaltable frame="all">
            <tgroup cols="2">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>Normalized total error rate per move</entry>
                  <entry>Rating</entry>
                </row>
                <row>
                  <entry>0.000 - 0.002</entry>
                  <entry>Supernatural</entry>
                </row>
                <row>
                  <entry>0.002 - 0.005</entry>
                  <entry>World Class</entry>
                </row>
                <row>
                  <entry>0.005 - 0.008</entry>
                  <entry>Expert</entry>
                </row>
                <row>
                  <entry>0.008 - 0.012</entry>
                  <entry>Advanced</entry>
                </row>
                <row>
                  <entry>0.012 - 0.018</entry>
                  <entry>Intermediate</entry>
                </row>
                <row>
                  <entry>0.018 - 0.026</entry>
                  <entry>Casual Player</entry>
                </row>
                <row>
                  <entry>0.026 - 0.035</entry>
                  <entry>Beginner</entry>
                </row>
                <row>
                  <entry>&gt; 0.035</entry>
                  <entry>Awful!</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para>Please note: The Normalized total error rate per move is
            multiplied by 1000 in the default settings.</para>
        </sect4>
      </sect3>
    </sect2>
  </sect1>
  <sect1 id="gnubg-rollouts">
    <title>Rollouts</title>
    <sect2 id="gnubg-rollouts_intro">
      <title>Introduction to rollouts</title>
      <para>The million dollar question is simple enough: out of all the games
        that could result from playing this position, how many do we win (and
        how many of our wins and losses are gammons, and how many are
        backgammons)? The model is exactly the same as if we had an urn with a
        googol balls in it (it's a big urn), and many of the balls have win
        written on them, and some say gammon loss, and if we look hard enough
        there are a few that read backgammon win, and so on. (Balls and urns
        are to probability theorists what teapots and checkerboards are to
        computer graphics researchers, or <emphasis>squeamish
        ossifrage</emphasis> is to cryptographers; they seem to come with the
        territory.) Instead of having the patience to count the googol balls,
        we just give the urn a really good shake and then pull 100 balls out
        without looking, and say for instance "Well, I got 53 wins, 31 losses, 9
        gammon wins, 6 gammon losses, and a backgammon win. It looks like my
        equity's roughly +0.26." and go home. If we were a bit more thorough, we
        could go a bit further and figure out that by cheating and measuring the
        sample proportions instead of the population proportions, we introduced
        a standard error of 0.06 into our result. (Of course, the trick is to
        select a sample size that's big enough that you reduce the standard
        error to a tolerable level, but small enough that the answer arrives
        before you get bored.)</para>
      <para>It will come as no surprise that a rollout with a limited number of
        trials follows exactly the same procedure. It's sufficient to say that
        the proportion of wins/gammons etc. that come up when <application>GNU
          Backgammon</application> plays against itself (say) 1296 times, aren't
        likely to vary all that much from the proportion we would get if we
        measured the proportion of results in every game we could possibly get
        of <application>GNU Backgammon</application> playing against itself. (Of
        course, there may still be some doubt whether the results of
          <application>GNU Backgammon</application> vs. <application>GNU
          Backgammon</application> are representative of the results of a
        perfect player vs. a perfect player, or of you vs. Joe Average, but
        that's another story.)</para>
    </sect2>
    <sect2 id="gnubg-rollouts_gnubg">
      <title>Rollouts in <application>GNU Backgammon</application></title>
      <para>In <application>GNU Backgammon</application> the Rollout function
        implements the procedure described above, with the following
        improvements:</para>
      <orderedlist continuation="restarts" inheritnum="ignore">
        <listitem>
          <para>Truncation: instead of rolling out all the way to the end of the
            game, it can stop and pretend its evaluation after a few plies is
            perfect. This may obviously introduce some amount of systematic
            error, but in practice this may not matter because: </para>
        </listitem>
        <listitem>
          <para>it makes rollouts much faster, which means you can do more of
            them (and thus trade sampling error for systematic error); </para>
        </listitem>
        <listitem>
          <para>different positions will be reached in different trials, so the
            correlation between errors in each trial weakens and the errors
            cancel out to some extent; </para>
        </listitem>
        <listitem>
          <para>if you are rolling out the positions after making different
            plays, then any remaining systematic error between the two rollouts
            is likely to be somewhat correlated and so the error in the
            comparison between the plays is hopefully small. This implies that
            truncated rollouts are better for estimating
            <emphasis>relative</emphasis> equity (<emphasis>which is the better
              move here, 13/10*/9 or 13/10* 6/5*?</emphasis>) than
              <emphasis>absolute</emphasis> equity (<emphasis>at this match
              score I need 29% wins to accept a dead cube; can I take in this
              position?</emphasis>). </para>
        </listitem>
        <listitem>
          <para>Race database truncation: when the game enters its 2-sided
            bearoff database, <application>GNU Backgammon</application> can
            estimate the probability of winning from that position with no error
            at all (it can play and evaluate endgame positions perfectly), which
            saves time and avoids introducing the errors that can result from
            large equity variances at the end of the game. </para>
        </listitem>
        <listitem>
          <para>Variance reduction: when using lookahead evaluations, it can
            reduce errors by making use of the equity difference from one ply to
            the next. (This can be interpreted as either canceling out the
            estimated <emphasis>luck</emphasis> (i.e. the difference in equity
            evaluations before and after rolling) or using subsequent
            evaluations to estimate the error in prior ones; the two views are
            equivalent). <application>GNU Backgammon</application> automatically
            performs variance reduction when looking ahead at least one ply.
          </para>
        </listitem>
        <listitem>
          <para>Stratified sampling: uses quasi-random number generation instead
            of pseudo-random number generation (this is a standard technique in
            Monte Carlo simulations where having a near-perfect uniform
            distribution in your sample is more important than
            unpredictability). <application>GNU Backgammon</application> only
            stratifies the first 2 plies of a rollout, though it would be easy
            enough to extend it to the remainder. </para>
        </listitem>
      </orderedlist>
      <sect3 id="gnubg-rollouts_gnubg_quasi">
        <title>Quasi-Random Dice</title>
        <para>Quasi-Random Dice are used to reduce the element of luck in
        rollouts. Instead of selecting purely random dice, <application>GNU
          Backgammon</application> will ensure a uniform distribution of the
        first roll of the rollout. If 36 trials are requested, one game will
        start with 11, two games with 21, two games with 31, etc. In general, if
        n * 36 games is requested, n games will start with 11, 2*n games with 21
        etc. This is called <emphasis>rotation</emphasis> of the first roll.
        Similarly, if n*1296 trials is requested, the second roll will be
        rotated, such that n games will start with 11-11, n games with 11-21, n
        games with 21-21, etc. The third roll be also be rotated if the number
        of trials is proportional to 46656.</para>
        <para>Suppose a user stops a 1296 trial rollout after 36 games. The 36
        games would have had the following rolls for the first two rolls of each
        game: 11-11, 21-11, 12-11, 31-11, 13-11, ..., 66-11 Obviously such a
        rollout will give skewed results since the second roll was 11 for all
        games! To avoid this problem <application>GNU Backgammon</application>
        will randomize the sequence of rolls such that it is guaranteed that for
        any sample of 36 games you have exactly one game with first roll 11,
        exactly one game with second roll 11, etc. This is called
          <emphasis>stratification</emphasis>.</para>
        <para><application>GNU Backgammon</application> will actually also rotate
        and stratify rollouts where the number of trials are not multiples of
        36, 1296, etc. The distribution of rolls is obviously not uniform any
        longer in this case, but it will still provide some reduction of the
        luck, i.e., no 37 trial rollout will have 3 games with a initial 66.</para>
        <para>Before the first game of a rollout, <application>GNU
        Backgammon</application> creates a pseudo random array which it will use
        for all the games in the rollout. In effect it has already decided the
        roll sequence it will use for up to 128 rolls in every game of the
        rollout. In other words, for a normal rollout where games don't go over
        64 moves, every single game of every possible rollout length has already
        had its dice sequence determined. During the rollout of game n, sequence
        n will be used, for game n+1 sequence n+1, etc. If it's a
          <emphasis>rollout as initial position</emphasis>, then whenever the
        current sequence starts with a double, the sequence is skipped and the
        dice routine moves on to the next sequence. Say an <emphasis>rollout as
          initial position</emphasis> is about to start using sequence 275, but
        that sequence begins with a double. The dice routine moves to sequence
        276. On the following game, it will use sequence 277 (it remembers how
        many it has already skipped).</para>
        <para>So, if you select <emphasis>rollout as initial position</emphasis>
        and 36 games, then you will get a prefect set of rolls for games 1..30
        and the first 6 rolls of the next perfect set (the same rolls you would
        have gotten for games 31..36 if you'd asked for 1080 games or 10800
        games or 92 games or whatever.</para>
        <para>The dice sequence doesn't know how many trials it will be asked for,
        it simply generates sequences such that for a normal rollout
          (<emphasis>rollout as initial position</emphasis>) every 36 (30) games
        you get all possible 1st rolls, every 1296 (1080) games get every
        possible first 2 rolls, every 46656 (38880) games you get full sets of 3
        rolls, etc.</para>
      </sect3>
    </sect2>
  </sect1>
  <sect1 id="gnubg-custom">
    <title>Customizing <application>GNU Backgammon</application></title>
    <sect2 id="gnubg-custom_eval">
      <title>Evaluation settings</title>
      <sect3 id="gnubg-custom_eval_intro">
        <title>Introduction to evaluation settings</title>
        <para><application>GNU Backgammon</application> evaluation functionality
          is driven by 3 separate neural networks. The neural nets evaluates
          each position statically, and returns the outcome probabilities of the
          game at the given position. However, there are several different
          methods and techniques that an evaluation can use, and these can be
          adjusted. It's possible to set different levels of lookahead, it's
          possible to add noise to the evaluation, and each evaluation can be
          done cubeful or cubeless. All these setting together form a total
            <emphasis>evaluation setting</emphasis>. In <application>GNU
            Backgammon</application> there are several of these evaluations
          setting for each operation <application>GNU Backgammon</application>
          does.</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Evaluation setting for Hints and Evaluations </para>
          </listitem>
          <listitem>
            <para>Evaluation setting for analysis. </para>
          </listitem>
          <listitem>
            <para>Evaluation setting for <application>GNU
              Backgammon</application> when it's playing. </para>
          </listitem>
          <listitem>
            <para>Several evaluation settings for each move performed in a
              rollout. </para>
          </listitem>
        </orderedlist>
      </sect3>
      <sect3 id="gnubg-custom_eval_depth">
        <title>The depth to search and plies</title>
        <para>A <emphasis>ply</emphasis> is simply considered to be one turn by
          a player. Any position can be evaluated at 0-ply. That means that GNU
          Backgammon does not look ahead in the game to evaluate the position.
          When GNU Backgammon is evaluating a checker play decision, it looks at
          all resulting positions after all the legal moves with the given dice
          roll, and evaluates these position at the given ply. It's possible to
          set the search depth by specifying the plies lookahead in any
          evaluation settings dialog.</para>
        <para>Snowie users: <application>GNU Backgammon</application> differs
          from some other software, notably Snowie in that <application>GNU
            Backgammon</application> zero ply is the same as Snowie 1 ply. In
          the same way what is called 2-ply in <application>GNU
          Backgammon</application> will therefore be similar to a Snowie 3-ply.</para>
        <para>For <application>GNU Backgammon</application>, a 0-ply evaluation
          of a move would be done by:</para>
        <para>Build a list of all legal moves. For each move, take the resulting
          board position and use the neural net to estimate the expected
          percentage of wins/gammons/backgammons/losses/gammon losses/backgammon
          losses. Rank the moves based on this evaluation.</para>
        <para>For one ply, after doing the above step, <application>GNU
            Backgammon</application> chooses the best n moves (where n is set by
          the move filters). For each one, it takes the resulting position for
          that move and goes through all 21 possible dice rolls for the
          opponent. From these results, it works out the average expectation for
          the initial move and ranks them. This is the same as Snowie 2 ply. You
          can think of it as asking "what's my best move if I also consider
          every possible dice roll and move my opponent might make?"</para>
        <para>For 2 ply (Snowie 3 ply), a similar process is done, but this
          time, not only are the opponents possible moves considered, but, for
          each of these, the player on roll's next move will be considered as
          well.</para>
        <para>For a single move, on average there are about 20 legal moves to
          consider.</para>
        <para>When doing a one ply analysis/evaluation, for the top n moves
          (from the move filter, <application>GNU Backgammon</application> needs
          to consider 21 rolls by the opponent, 20 and possible legal moves per
          roll) = 420 positions to evaluate.</para>
        <para>Every additional ply will multiply the previous number of
          evaluations by about 400 odd, which explains the huge difference in
          playing speed/analysis speed between 0 ply and 2 ply settings. I don't
          think many people would enjoy playing against <application>GNU
            Backgammon</application> at 3 ply settings, where moves could take
          minutes to be selected. It's also not clear that using much deeper
          lookahead actually gains a lot in terms of playing strength - if you
          really need better answers than 2 ply, rollouts are probably a lot
          better.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_define">
        <title>Defining evaluation settings</title>
        <para>First of all: There are several places in <application>GNU
            Backgammon</application> where you can adjust either it's skill at
          playing or the quality of it's hints and analysis:</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_skill">
        <title>Playing skill:</title>
        <para><menuchoice><guimenu>Settings</guimenu><guimenuitem>Players</guimenuitem><guimenuitem>Player 0</guimenuitem></menuchoice> - choose Supremo or World Class. GNU Backgammon will
          take longer choosing its moves, but they will be very strong. At this
          setting, it is much stronger than Jellyfish level 7.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_hint">
        <title>Hints:</title>
        <para><menuchoice><guimenu>Settings</guimenu><guimenuitem>Evaluation</guimenuitem></menuchoice> - choose Supremo or World Class if you want hints to be
          very accurate, but, like the playing skill setting, you may find that
          it can take as long as 15 seconds to get an answer on a 1GHz PC.
          Expert will be very fast, but for some positions where you need to
          consider what your opponent may do on his roll and how you will follow
          it up, the results will be less accurate. A wild guess would be
          somewhere around 2 or 3 percent of the time, World Class or stronger
          settings would give a different best move and maybe less than 1/2
          percent of the time, the Expert result would be seriously
        wrong.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_analysis">
        <title>Analysis:</title>
        <para><menuchoice><guimenu>Settings</guimenu><guimenuitem>Analysis</guimenuitem></menuchoice> - these settings are used by the Analyse Move/Game/Match
          or Session command. Note that this is totally different to what is
          used in the Hint command, which uses the above settings. You probably
          want at least World Class here. My experience on a 700MHz PC is that a
          7 point match takes about 15 to 20 minutes to analyse on the Supremo
          settings. But the results tend to be very accurate.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_rollout">
        <title>Rollouts:</title>
        <para><menuchoice><guimenu>Settings</guimenu><guimenuitem>Rollouts</guimenuitem><guimenuitem>General Settings</guimenuitem></menuchoice> tick the boxes for 'Cube decisions use same settings
          same as checker play' and 'Use same settings for both players'</para>
        <para><menuchoice><guimenu>Settings</guimenu><guimenuitem>Rollouts</guimenuitem><guimenuitem>First Play Both</guimenuitem></menuchoice> - select Expert here (this is my opinion). When doing
          rollouts, most of the time Expert play will be more than strong enough
          if you do say 1296 trials with no truncation. The rollout function has
          an enormous number of options, most of which are only useful when
          trying to investigate special positions. The simple expert setting for
          both players is probably more accurate than any of the Analysis
          functions. The downside is that rolling out 1296 trials of an early
          move in a game can take a couple of hours. On World Class or Supremo
          rollout settings, it can take more than 24 hours of computing
        time.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_dialog">
        <title>Changing evaluation settings</title>
        <para>A typical evaluation settings dialog is shown in this figure.</para>
        <figure float="0" id="gnubg-fig_evaldialog">
          <title>The evaluation settings dialog</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/evalsetting.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[evalsettings.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>The dialog is consisting of two columns, the left column is for
          setting the checker play decision evaluation settings, and the right
          column is for setting the cube decision evaluation settings.</para>
        <para>For each column you can select some predefined settings, or you
          can define your own settings.</para>
        <para>In the lookahead box, you can adjust the lookahead of each
          evaluation by specifying the plies to be evaluated. Each ply costs
          approximately a factor of 21 in computational time. Also note that
          2-ply is equivalent to Snowie's 3-ply setting.</para>
        <para>In the box for Cubeful evaluations, you can specify if you want
          GNU Backgammon to evaluate the cube ownership in its evaluations.
          With this option turned on it generally improves the evaluation,
          specially when it's close to cube decisions, so we recommend that this
          option is turned on.</para>
        <para>In the Noise box, you can add noise to the evaluation. This can be
          smart if you think the program plays to strong. You can use the Noise
          box option to introduce noise or errors in the evaluations. This is
          useful for introducing levels below 0-ply. The lower rated bots (e.g.,
          GGotter) on the GamesGrid backgammon server uses this technique. The
          introduced noise can be deterministic, i.e., always the same noise for
          the same position, or it can be random.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_predefined">
        <title>Predefined settings</title>
        <para>At the top of each evaluation settings column, it's possible to
          set a predefined setting.</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Beginner This setting uses no lookahead and add up to 0.060
              noise to the evaluation. With this setting <application>GNU
                Backgammon</application> will evaluate like a beginner.</para>
          </listitem>
          <listitem>
            <para>Casual play This setting uses no lookahead and add up to 0.050
              noise to the evaluation. With this setting <application>GNU
                Backgammon</application> will evaluate a bit better than the
              beginner setting but not much.</para>
          </listitem>
          <listitem>
            <para>Intermediate This setting uses no lookahead and add up to
              0.030 noise to each evaluation. It still plays a intermediate
              game.</para>
          </listitem>
          <listitem>
            <para>Advanced This setting uses no lookahead and add up to 0.015
              noise to each evaluation. This setting plays a good game.</para>
          </listitem>
          <listitem>
            <para>Expert This setting uses no lookahead but does not add any
              noise to the evaluations. This settings play a strong game.
            </para>
          </listitem>
          <listitem>
            <para>World class This setting uses 2-ply lookahead, it uses no
              noise and it uses a normal move filter. This plays a really
              strong game, on par with the very best humans players.</para>
          </listitem>
          <listitem>
            <para>Supremo This is basically the same as the World Class setting,
              but it uses a larger move filter.</para>
          </listitem>
          <listitem>
            <para>Grandmaster This setting uses 3-ply lookahead, no noise and
              a large move filter. This setting is extremely strong and still
              fast on current computers.</para>
          </listitem>
          <listitem>
            <para>4ply This setting uses 4-ply lookahead, no noise and
              a large move filter. This setting is extremely strong, but it's
              also quite slow. It is more suitable to analysis than to actual play.</para>
          </listitem>
        </orderedlist>
      </sect3>
      <sect3 id="gnubg-custom_eval_filter">
        <title>Move filters</title>
        <sect4 id="gnubg-custom_eval_filter_intro">
          <title>Introduction to move filters</title>
          <para><application>GNU Backgammon</application> uses a technique
            called move filters in order to prune the complete list of legal
            moves when analysing checker play decisions.</para>
          <para>A move filter for a given ply, say, 2-ply, consists of four
            parameters for each sub ply:</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>whether to analyse at all at this sub ply, </para>
            </listitem>
            <listitem>
              <para>the number of moves always accepted at the given level,
              </para>
            </listitem>
            <listitem>
              <para>the number of extra moves to add, </para>
            </listitem>
            <listitem>
              <para>the threshold for adding extra moves. </para>
            </listitem>
          </orderedlist>
          <para>A move filter for a given ply, say, 2-ply, consists of four
            parameters for each sub ply:</para>
          <para>whether to analyse at all at this sub ply, the number of moves
            always accepted at the given level, the number of extra moves to
            add, the threshold for adding extra moves. For example, for 2-ply
            checker play decisions there are two move filters: one for pruning
            at 0-ply, and another for pruning at 1-ply. The predefined setting
              <emphasis>Normal</emphasis> has: accept 0 moves and add up to 8
            moves within 0.16 at 0-ply, and no pruning at 1-ply.</para>
          <para>Consider the opening position where 4-2 has been rolled:</para>
          <figure float="0" id="gnubg-fig_movefilter">
            <title>Example of move filter settings</title>
            <mediaobject>
              <imageobject>
                <imagedata fileref="images/movefilterex.png"/>
              </imageobject>
	  <textobject>
		  <phrase>[[movefilterex.png]]</phrase>
	  </textobject>
            </mediaobject>
          </figure>
          <para><application>GNU Backgammon</application> starts by finding all
            possible moves and evaluate those at 0-ply:</para>
          <informaltable frame="all">
            <tgroup cols="6">
              <tbody>
                <row>
                  <entry>1.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>8/4 6/4</entry>
                  <entry>Eq.:+0.189</entry>
                  <entry></entry>
                </row>
                <row>
                  <entry>2.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/20 13/11</entry>
                  <entry>Eq.:+0.046</entry>
                  <entry>(-0.143)</entry>
                </row>
                <row>
                  <entry>3.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>13/11 13/9</entry>
                  <entry>Eq.:+0.044</entry>
                  <entry>(-0.145)</entry>
                </row>
                <row>
                  <entry>4.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/22 13/9</entry>
                  <entry>Eq.:+0.034</entry>
                  <entry>(-0.155)</entry>
                </row>
                <row>
                  <entry>5.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/22 24/20</entry>
                  <entry>Eq.:-0.006</entry>
                  <entry>(-0.194)</entry>
                </row>
                <row>
                  <entry>6.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/18</entry>
                  <entry>Eq.:-0.009</entry>
                  <entry>(-0.198)</entry>
                </row>
                <row>
                  <entry>7.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/20 6/4</entry>
                  <entry>Eq.:-0.019</entry>
                  <entry>(-0.208)</entry>
                </row>
                <row>
                  <entry>8.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>13/9 6/4</entry>
                  <entry>Eq.:-0.024</entry>
                  <entry>(-0.213)</entry>
                </row>
                <row>
                  <entry>9.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>13/7</entry>
                  <entry>Eq.:-0.052</entry>
                  <entry>(-0.241)</entry>
                </row>
                <row>
                  <entry>10.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/20 8/6</entry>
                  <entry>Eq.:-0.053</entry>
                  <entry>(-0.242)</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para/>
          <para>According to the move filter the first 0 moves are accepted. The
            equity of the best move is +0.189, and according to the move filter
            we add up to 8 extra moves if they're within 0.160, that is, if they
            have equity higher than 0.029. Moves 5 through 18 all have equity
            lower that, so the move list after pruning at 0-ply consists of
            moves 1 through 4. According to the move filter we do not perform
            any pruning at 1-ply, so moves 1 through 4 are submitted for
            evaluation at 2-ply;</para>
          <informaltable frame="all">
            <tgroup cols="6">
              <tbody>
                <row>
                  <entry>1.</entry>
                  <entry>Cubeful</entry>
                  <entry>2-ply</entry>
                  <entry>8/4 6/4</entry>
                  <entry>Eq.:+0.180</entry>
                  <entry></entry>
                </row>
                <row>
                  <entry>2.</entry>
                  <entry>Cubeful</entry>
                  <entry>2-ply</entry>
                  <entry>24/20 13/11</entry>
                  <entry>Eq.:+0.052</entry>
                  <entry>(-0.127)</entry>
                </row>
                <row>
                  <entry>3.</entry>
                  <entry>Cubeful</entry>
                  <entry>2-ply</entry>
                  <entry>13/11 13/9</entry>
                  <entry>Eq.:+0.043</entry>
                  <entry>(-0.137)</entry>
                </row>
                <row>
                  <entry>4.</entry>
                  <entry>Cubeful</entry>
                  <entry>2-ply</entry>
                  <entry>24/22 13/9</entry>
                  <entry>Eq.:+0.035</entry>
                  <entry>(-0.145)</entry>
                </row>
                <row>
                  <entry>5.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/22 24/20</entry>
                  <entry>Eq.:-0.006</entry>
                  <entry>(-0.185)</entry>
                </row>
                <row>
                  <entry>6.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/18</entry>
                  <entry>Eq.:-0.009</entry>
                  <entry>(-0.189)</entry>
                </row>
                <row>
                  <entry>7.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/20 6/4</entry>
                  <entry>Eq.:-0.019</entry>
                  <entry>(-0.199)</entry>
                </row>
                <row>
                  <entry>8.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>13/9 6/4</entry>
                  <entry>Eq.:-0.024</entry>
                  <entry>(-0.203)</entry>
                </row>
                <row>
                  <entry>9.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>13/7</entry>
                  <entry>Eq.:-0.052</entry>
                  <entry>(-0.232)</entry>
                </row>
                <row>
                  <entry>10.</entry>
                  <entry>Cubeful</entry>
                  <entry>0-ply</entry>
                  <entry>24/20 8/6</entry>
                  <entry>Eq.:-0.053</entry>
                  <entry>(-0.232)</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para/>
          <para>If we instead request a 4-ply checker play decision,
              <application>GNU Backgammon</application> will use the move
            filters defined for 4-ply:</para>
          <informaltable frame="all">
            <tgroup cols="4">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <colspec colname="c3" colnum="3" colwidth="1*"/>
              <colspec colname="c4" colnum="4" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>Ply</entry>
                  <entry>Accept moves</entry>
                  <entry>Extra moves</entry>
                  <entry>Threshold for extra moves</entry>
                </row>
                <row>
                  <entry>0</entry>
                  <entry>0</entry>
                  <entry>8</entry>
                  <entry>0.160</entry>
                </row>
                <row>
                  <entry>1</entry>
                  <entry>no pruning</entry>
                  <entry> </entry>
<entry> </entry>
</row>
                <row>
                  <entry>2</entry>
                  <entry>0</entry>
                  <entry>2</entry>
                  <entry>0.040</entry>
                </row>
                <row>
                  <entry>3</entry>
                  <entry>no pruning</entry>
                  <entry> </entry>
<entry> </entry>
</row>
              </tbody>
            </tgroup>
          </informaltable>
          <para>The 4-ply move filter is identical to the 2-ply for pruning at
            0-ply, so after 0-ply we have the same three moves as above. Since
            there is no pruning at 1-ply these three moves are evaluated at
            2-ply as above. There is no pruning at 3-ply.</para>
          <para>At 4-ply we do not accept any moves, but add up to two moves if
            there within 0.040 from the best move. Since the second best move is
            -0.138 worse than the best move, we do not accept any moves to be
            evaluated at 4-ply. Hence <application>GNU Backgammon</application>
            will actually not evaluate any moves on 4-ply.</para>
          <para>The predefined move filters all have accept 0 moves, in order to
            facilitate fast decisions and analysis, i.e., no need to waste much
            time over obvious moves.</para>
          <para>For post-mortem analysis it may be worthwhile to ensure that GNU
            Backgammon analyses at least two moves at the specified ply. To do
            this, specify accept 2 moves in the move filters you use for
            analysis. However, do note that <application>GNU
            Backgammon</application> will force evaluation at the specified ply
            if the actual move made is doubtful. This ensures that all errors
            and blunders are evaluated at the same level.</para>
        </sect4>
        <sect4 id="gnubg-custom_eval_filter_define">
          <title>Defining move filters</title>
          <para>The move filter allows you to control exactly how many moves GNU
            is examining at each ply. A ply is basically one move played by one
            side, thus if both sides played a move, it would be one whole move,
            but two plies, one for each side. To change the specific settings,
            press the Modify... button.</para>
          <para>Although the predefined levels, such as World Class, Supremo,
            etc. are tested and good, you may want to know or control how GNU
            filters its moves to analyse and how many.</para>
          <figure float="0" id="gnubg-fig_movefilter1">
            <title>Move filter 1</title>
            <mediaobject>
              <imageobject>
                <imagedata fileref="images/movefilter1.png"/>
              </imageobject>
	  <textobject>
		  <phrase>[[movefilter1.png]]</phrase>
	  </textobject>
            </mediaobject>
          </figure>
          <para>If you are playing Expert level (this is what GGRaccoon is set
            at) or another 0-ply setting, the Move Filter settings will not
            change a thing, as Expert level automatically examines all moves. At
            Supremo level, this changes though, as it takes a selection of the
            best moves from 0-ply and examines them at 2-ply. This means that
            for those selected moves it will calculate all the possibilities 2
            plies ahead and evaluate them, allowing it to find better moves.
            Since Supremo is a 2-ply setting, we are only interested in the
            2-ply settings of Large as in the figure above. 3-ply or 4-ply
            settings will have no effect here because Supremo doesn't examine at
            that depth.</para>
          <para>In the figure above, we can see it first will Always accept 0
            moves. This first line means that it won't force any moves to be
            analysed at 2-ply, it will only analyse moves according to the
            second line. If it had said it would always analyse 2 moves, this
            would mean that no matter how ridiculously bad the 2nd move was
            compared to the 1st, it would analyse both at 2-ply.</para>
          <para>The second line says it will Add extra 16 moves within 0.320.
            This means that provided they aren't more than 0.320 equity worse
            than the top move, it will select a maximum of 16 moves to analyse
            at 2-ply. For example, in the figure below, the 2nd best move is no
            less than 0.453 equity worse than the top choice, so it didn't
            bother analysing them at 2-ply as it is unlikely to change its mind
            on what the best move is.</para>
          <figure float="0" id="gnubg-fig_movefilter2">
            <title>Move filter 2</title>
            <mediaobject>
              <imageobject>
                <imagedata fileref="images/movefilter2.png"/>
              </imageobject>
	  <textobject>
		  <phrase>[[movefilter2.png]]</phrase>
	  </textobject>
            </mediaobject>
          </figure>
          <para>Take a look at next figure.</para>
          <figure float="0" id="gnubg-fig_movefilter3">
            <title>Move filter 3</title>
            <mediaobject>
              <imageobject>
                <imagedata fileref="images/movefilter3.png"/>
              </imageobject>
	  <textobject>
		  <phrase>[[movefilter3.png]]</phrase>
	  </textobject>
            </mediaobject>
          </figure>
          <para>Here, the exact same settings were maintained, but the 1-ply
            filter was activated. This just means that those 16 moves selected
            from the 0-ply are sent instead to be analysed at 1-ply, and then up
            to 5 moves from 1-ply will be sent to be analysed at 2-ply. So this
            would actually be faster than the previous setting (and weaker),
            since a maximum of only 5 moves would be analysed at 2-ply depth.</para>
          <para>Tip: Feel free to experiment with the settings, as you can
            always reset them by simply choosing one of the predefined levels.
            In order to see if they are better, or as good but faster, I'd
            suggest comparing the results with Supremo. One setting I have that
            works quite well, is to take the basic Supremo setting and in the
            Move filter reduce the 16 to 12. It cuts down on the thinking time
            by 20-25% more or less, and I haven't seen more than one case in
            over 10,000 moves where it missed the best move.</para>
        </sect4>
      </sect3>
      <sect3 id="gnubg-eval_cubeful">
        <title>Cubeful vs Cubeless</title>
        <para>In the evaluation settings dialog box you can specify whether or
          not checker play should be evaluated cubeful. It's recommended that
          you use cubeful evaluation. To get an understanding of what cubeful
          checker play evaluations are, you can take a look at this position:</para>
        <figure float="0" id="gnubg-fig_cubeful">
          <title>Cubeful example</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/cubeful-ex1.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[cubeful-ex1.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>In this position black has rolled 51 and he has a good position.
          If the position is evaluated cubeless the best move is 13/7. Black can
          hope white does not roll 34 or 35 form the bar and has now a good
          chance to close white out in the next few rolls. However if white
          rolls one of the four hitting numbers from the bar, white will quite
          soon have a really hot redouble. This redouble increases whites equity
          so much that black actually should play this move safe. He should play
          13/8 6/5. However if the evaluation was set to cubeless, an setting
          which assumes white will never redouble, black should play 13/8.</para>
        <para>Here's another example:</para>
        <figure float="0" id="gnubg-fig_cubeful2">
          <title>Cubeful example 2</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/cubeful-ex2.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[cubeful-ex2.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>This is from a 5 point match where black has 1 point and white has
          3 points. Black wins the opening roll and considers playing 13/11 6/5
          or 24/23 13/11.</para>
        <para>If <application>GNU Backgammon</application> uses a cubeless
          evaluation it will play 24/23 13/11. But if you're using a cubeful
          evaluation it will play 13/11 6/5. Slotting with 6/5 is at this score
          a better move even though it loses more gammons. The gammons black are
          losing won't matter anyway, since black will turn the cube in the next
          few rolls anyway. The slotting play also wins more gammons, and with
          the cube tuned to 2, black should play towards gammonish positions at
          this score.</para>
        <para>You can read more about cubeful evaluations in the [[Appendix]].</para>
        <para>It's recommended that you use cubeful checker evaluations.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_pruning">
        <title>Pruning neural networks</title>
        <para>A feature in the evaluation is the use of a set of neural
          networks just to prune away move candidates within a deeper ply
          search. This increases the speed considerably and it doesn't lose much
          playing strength compared to evaluation without these pruning neural
          nets. Jim Segrave has just done an analysis of this and found that
          less than 1% of all moves come out different with the pruning nets
          activated. In most of these positions the move would not have made any
          difference to the game at all.</para>
      </sect3>
      <sect3 id="gnubg-custom_eval_noise">
        <title>Noise</title>
        <para>If you think <application>GNU Backgammon</application> plays too
          strong for you, you can add some noise to its evaluation. The number
          you add into the field in the evaluations setting is the limit amount
          of noise that will be added to the evaluation.</para>
        <para>If noise is added to the evaluations <application>GNU
          Backgammon</application> will take a Box M�ller transform of a point
          in the unit circle and add to each possible outcome probability. This
          means that the addition is random, but distributed so that it's more
          likely to have an noise addition close to zero than a noise addition
          close to the limit. The noise addition is limited to the number you
          put into the noise field in the dialog box.</para>
        <para>If you check the box Deterministic noise, the noise added to each
          evaluation will be based on a sum of the bytes in the hash of the
          board position, which (by the central limit theorem) should have a
          normal distribution. In that way you will always have that same noise
          amount to a position, since the noise added to the evaluation is only
          depending on the position itself.</para>
        <para>If you want <application>GNU Backgammon</application> to evaluate
          and play as strong as possible, you should not add any noise.</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-custom_appearance">
      <title>Appearance</title>
      <para>You can change the appearance of <application>GNU
        Backgammon</application>. There is a lot of options to choose among and
        you can have the board look like nearly anything. This section will help
        you through some on the appearance customization.</para>
      <para>To change the look of the board, you should click <menuchoice><guimenu>Settings</guimenu><guimenuitem>Appearance</guimenuitem></menuchoice>. This will open a dialog box like this:</para>
      <figure float="0" id="gnubg-fig_appear">
        <title>The appearance dialog</title>
        <mediaobject>
          <imageobject>
            <imagedata fileref="images/appearence.png"/>
          </imageobject>
	  <textobject>
		  <phrase>[[appearance.png]]</phrase>
	  </textobject>
        </mediaobject>
      </figure>
      <para>In this dialog box you see a preview picture of the board at the
        right side, and you have notebook with options to the left.</para>
      <para>There are two different board rendering engines in <application>GNU
          Backgammon</application>. It's a 2 dimensional rendering engine which
        is simple and fast, but still makes really good board images. The moves
        can be animated.</para>
      <para>The other board rendering type is a 3 dimensional board engine based
        on OpenGL. This board rendering engine makes astonishing fine board
        graphics, and animates the rolls and moves beautifully. You can even add
        textures to your boards and checkers. However, the 3D rendering type
        need a good modern graphic card which can take 3D hardware acceleration.</para>
      <para>The leftmost tab in the appearance settings notebook is the General
        option. You can here select between the 2D board or the 3D board. You
        can also choose between different other settings. Most of the settings
        here are self explanatory.</para>
      <warning>
        <para>Don't forget to save your settings!! A lovely and painstakingly
          crafted board setup can be lost if you don't faithfully do your <menuchoice><guimenu>Settings</guimenu><guimenuitem>Save settings</guimenuitem></menuchoice>.</para>
      </warning>
    </sect2>
  </sect1>
  <sect1 id="gnubg-technotes">
    <title>Technical Notes</title>
    <sect2 id="gnubg-tech_databases">
      <title>Obtaining bearoff databases</title>
      <sect3 id="gnubg-tech_databases_generate">
        <title>Generate your own</title>
        <para><application>GNU Backgammon</application> is supplied with a
          program makebearoff that is used to generate bearoff databases. Due to
          various limitations it is only possible to generate bearoff databases
          with a size less than 2GB, i.e., the 13pt one-sided database and the
          11 checker two-sided database are the largest databases that can be
          generated with makebearoff. </para>
        <para>On current (2014) hardware the creation of the 11 checker
          two-sided database will take a few hours.
          It is approximately 3 times longer for each additional checker
          or each additional point.</para>
        <para>To generate one sided database issue </para>
        <para>makebearoff -o 10 -f gnubg_os.bd</para>
        <para>to generate the one sided 10 point database. The program
          makebearoff uses a cache to store previously generated positions. You
          may set the cache size with the -s size option, e.g., </para>
        <para>makebearoff -o 10 -s 123456789 -f gnubg_os.bd</para>
        <para>to use 123,456,789 bytes of memory for cache size. In general, if
          the cache size is less than the size of the database to be generated,
          then extra time is needed to generate the bearoff database because
          some positions may have to be calculated several times. </para>
        <para>makebearoff can also reuse previously generated databases, so if
          you already had generated the 9 point database you can reuse it: </para>
        <para>mv gnubg_os.bd gnubg_os9.bd</para>
        <para>makebearoff -o 10 -O gnubg_os9.bd -f gnubg_os.bd</para>
        <para>Note that makebearoff requires temporary disk space to generate
          both one sided and two sided databases. In general, twice the disk
          space of the database to be generated is needed. </para>
        <para>To generate a two sided database issue </para>
        <para>makebearoff -t 6x8 -f gnubg_ts.bd</para>
        <para>This example will generate the 8 checkers on 6 points database.
          Again, it's possible to adjust the amount of memory with the -s
          option. It's recommended to set the cache size to the maximum amount
          of memory available (although there is no need to set it beyond the
          size of the bearoff database to be generated). </para>
        <para>Other options for makebearoff are available, see makebearoff
          --help for the complete set. </para>
        <para>The accompanying program makehyper is used to generate databases
          for Hypergammon. For example, to generate the 3-checker database issue
          the command </para>
        <para>makehyper -c 3 -f hyper3.bd</para>
        <para>Since the generation can be  time consuming,
          makehyper will generate a checkpoint file (in the example above:
          hyper3.bd.tmp) that can be used to restart the calculation if needed
          by using the -r option. You can also change the default convergence
          threshold of 0.00001 if you're happy with less accurate equities. To
          generate the 3 checker database you need approximately 400 MB of free
          memory. On current (2014) hardware the calculation for the 3-checker
          database will take a few hours (1- and 2-checker are much faster).</para>
        <para>See makehyper --help for the complete set of available options.
        </para>
      </sect3>
      <sect3 id="gnubg-tech_databases_download">
        <title>Download</title>
        <para>You may download the two sided database with 6 checkers on 6
          points from <ulink url="ftp://alpha.gnu.org/gnu/gnubg/gnubg_ts0.bd.gz">ftp://alpha.gnu.org/gnu/gnubg/gnubg_ts0.bd.gz</ulink> and the one
          sided database with 15 checkers 6 points from <ulink url="ftp://alpha.gnu.org/gnu/gnubg/gnubg_os0.bd.gz">ftp://alpha.gnu.org/gnu/gnubg/gnubg_os0.bd.gz</ulink>. </para>
	  <para>Larger databases are available for download from <ulink url="ftp://ftp.demon.nl/pub/Demon/games/gnubg/databases/">ftp://ftp.demon.nl/pub/Demon/games/gnubg/databases/</ulink>. </para>
      </sect3>
      <sect3 id="gnubg-tech_databases_install">
        <title>Installation of the databases</title>
        <para>The databases's installation directory depends on where
         <application>GNU Backgammon</application> is installed on your system.
         It is displayed by <menuchoice><guimenu>Help</guimenu>
         <guimenuitem>About GNU Backgammon</guimenuitem>
         <guimenuitem>Evaluation Engine</guimenuitem>
         </menuchoice>.
        </para>
      </sect3>
      <sect3 id="gnubg-tech_databases_verify">
        <title>Verification of the databases</title>
        <para>To verify that your generated or downloaded bearoff database is
          correct, the table below lists the MD5 checksums for a number of
          possible databases. </para>
      </sect3>
      <sect3 id="gnubg-tech_databases_os">
        <title>One-sided bearoff databases (compressed)</title>
        <para>The table below contains the MD5 checksums for the compressed one
          sided bearoff databases, i.e., databases generated with default
          options. </para>
        <informaltable frame="all">
          <tgroup cols="3">
            <tbody>
              <row>
                <entry>Checkers </entry>
                <entry>Points </entry>
                <entry>MD5 checksum </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>1 </entry>
                <entry>c789f049ec98ce4e307b471257999f39 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>2 </entry>
                <entry>b6e61c1625ae4b3b164e93ab064192b9 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>3 </entry>
                <entry>346dae6139ccb4b227c534373e5c52e4 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>4 </entry>
                <entry>653255f5f9f22fd50277f7ff25b2a343 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>5 </entry>
                <entry>2064f9a56b23117d053a573c96a92fa2 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>6 </entry>
                <entry>3dc7b833c4670849cee00479a9e21b49 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>7 </entry>
                <entry>67235c8e0ee152df5daf36cbeae5b3c2 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>8 </entry>
                <entry>a4acbb5c7e9e1f08e561afe0af934e5c </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>9 </entry>
                <entry>9c4ddab4e51c3e668c9c97b8f8768dbc </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>10 </entry>
                <entry>81b3898f06bbd08ee8295a839251a10a </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>11 </entry>
                <entry>78ecb4be86dab6af8755ea4063d50fb6 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>12 </entry>
                <entry>770fcff48894a96ebb2249343ef94866 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>13 </entry>
                <entry>cc74b69a62f6e648936f533838a527a8 </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>14 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>15 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>16 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>17 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>18 </entry>
                <entry>not available </entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
      </sect3>
      <sect3 id="gnubg-tech_databases_ts">
        <title>Two-sided bearoff databases (with cubeless and cubeful equities)</title>
        <para>The table below contains the MD5 checksums for the default two
          sided bearoff databases. </para>
        <informaltable frame="all">
          <tgroup cols="3">
            <tbody>
              <row>
                <entry>Checkers </entry>
                <entry>Points </entry>
                <entry>MD5 checksum </entry>
              </row>
              <row>
                <entry>1 </entry>
                <entry>6 </entry>
                <entry>7ed6f8e7fce16ea2b80e07a4a516653c </entry>
              </row>
              <row>
                <entry>2 </entry>
                <entry>6 </entry>
                <entry>e9d760bf213841c285245ed757a52f4d </entry>
              </row>
              <row>
                <entry>3 </entry>
                <entry>6 </entry>
                <entry>9d67da3db32ad4720cc38eecf9a67967 </entry>
              </row>
              <row>
                <entry>4 </entry>
                <entry>6 </entry>
                <entry>9156f37032d1d4b0352a41186e632dfc </entry>
              </row>
              <row>
                <entry>5 </entry>
                <entry>6 </entry>
                <entry>0db19ab08feae1feb33ddbd709479f62 </entry>
              </row>
              <row>
                <entry>6 </entry>
                <entry>6 </entry>
                <entry>44b6040b49b46cb9dd2ce8caa947044d </entry>
              </row>
              <row>
                <entry>7 </entry>
                <entry>6 </entry>
                <entry>9eb8b042d4d2ddf8d40e74a892745ad5 </entry>
              </row>
              <row>
                <entry>8 </entry>
                <entry>6 </entry>
                <entry>fcdbbc80b7ef84ddc81b839d0f26bed1 </entry>
              </row>
              <row>
                <entry>9 </entry>
                <entry>6 </entry>
                <entry>a11b2d410d51401143d05e73f9ffac15 </entry>
              </row>
              <row>
                <entry>10 </entry>
                <entry>6 </entry>
                <entry>12dc70c86f356d06bc96ee38dee40c62 </entry>
              </row>
              <row>
                <entry>11 </entry>
                <entry>6 </entry>
                <entry>68a0fa972bdde7b14a6b911d1dc80a30 </entry>
              </row>
              <row>
                <entry>12 </entry>
                <entry>6 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>13 </entry>
                <entry>6 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>14 </entry>
                <entry>6 </entry>
                <entry>not available </entry>
              </row>
              <row>
                <entry>15 </entry>
                <entry>6 </entry>
                <entry>not available </entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
      </sect3>
      <sect3 id="gnubg-tech_databases_hyper">
        <title>Two-sided databases for Hypergammon</title>
        <para>As the generation of the Hypergammon databases are an iterative
          process it's not possible to give MD5 checksum for these, as it depend
          heavily on your convergence threshold, the number of restarts, and
          rounding errors. </para>
  <para>A random position from the database is found in <xref linkend="gnubg-hypergammon"/>. The equities and
          percentages in your own database should be very similar (if not
          identical): </para>
        <para><application>GNU Backgammon</application> Position ID:
          ADAAAQAkIAAAAA</para>
  <example id="gnubg-hypergammon">
	  <title>Random position from hypergammon database</title>
  <programlisting>
 GNU Backgammon  Position ID: ADAAAQAkIAAAAA
                 Match ID   : cAkAAAAAAAAA
 +13-14-15-16-17-18------19-20-21-22-23-24-+     O: gnubg
 |       X     X    |   |                X |     0 points
 |                  |   |                  |
 |                  |   |                  |
 |                  |   |                  |
 |                  |   |                  |
v|                  |BAR|                  |     (Cube: 1)
 |                  |   |                  |
 |                  |   |                  |
 |                  |   |                  |
 | O                |   |                  |     On roll
 | O                |   |             O    |     0 points
 +12-11-10--9--8--7-------6--5--4--3--2--1-+     X: jth

             Player       Opponent
Position         3018          2831

Owned cube                    : -0.0230
Centered cube                 : -0.2310
Centered cube (Jacoby rule)   : -0.2186
Opponent owns cube            : -0.3548

        Win     W(g)    W(bg)   L(g)    L(bg)   Equity  (cubeful)
static: 0.456   0.244   0.014   0.318   0.019   (-0.168  (-0.219))


No double           : -0.219
Double, pass        : +1.000   (+1.219)
Double, take        : -0.710   (-0.491)

Correct cube action: No double, beaver
</programlisting>
</example>
      </sect3>
    </sect2>
    <sect2 id="gnubg-tech_met">
      <title>Match Equity Tables</title>
      <para>Multiple match equity tables are bundled with <application>GNU
        Backgammon</application>, although most of them are only of marginal
        or historical interest.</para>
      <itemizedlist spacing="normal">
      <listitem>
      <emphasis>Rockwell-Kazaross</emphasis> or
      <emphasis>Kazaross-XG2</emphasis> are the recommended choice.
      They were created by rolling out the initial position for every score
      up to -15:-15 and are the best currently available estimations
      of the match equities for a strong bot playing itself.
      </listitem>
      <listitem>
      <emphasis>g11</emphasis>, <emphasis>snowie</emphasis> and
      <emphasis>woolsey</emphasis> are the tables that were used by earlier
      versions of <application>GNU Backgammon</application>,
      <application>Snowie</application> or for hand calculations back when
      bots didn't do match equity calculations (or there was no bot at all).
      All of them are now considered obsolete. Analyses or rollouts using
      them can still be found in books, magazines or web sites so it can
      occasionally be interesting to use them in
      <application>GNU Backgammon</application>
      for comparison to these older results.
      </listitem>
      <listitem>
      <emphasis>jacobs</emphasis>, <emphasis>jac050</emphasis> and
      <emphasis>jac100</emphasis> are from the book
      <emphasis>_Can a Fish Taste Twice as Good_</emphasis> by Jake Jacobs and
      Walter Trice and give match equities if players are of equal strength, if
      one is 50 Elo points stronger and if one is 100 points stronger
      respectively.
      They should only be used to analyse such unequal opponents situations.
      </listitem>
      <listitem>
      The other tables are obsolete and of no practical use.
      </listitem>
      </itemizedlist>
    </sect2>
    <sect2 id="gnubg-tech_python">
      <title>Python scripting</title>
      <para>Accessing the <application>GNU Backgammon</application> Python shell</para>
      <para>To access the Python shell, either type `&gt;' from the command
        line or select <menuchoice><guimenu>Window</guimenu><guimenuitem>Python Shell(IDLE...)</guimenuitem></menuchoice> from the GUI. </para>
      <sect3 id="gnubg-tech_python_module">
        <title>gnubg module functions</title>
        <para>board()</para>
        <para>command(cmd)</para>
        <para>evaluate()</para>
        <para>evalcontext()</para>
        <para>eq2mwc()</para>
        <para>mwc2eq()</para>
        <para>cubeinfo()</para>
        <para>met()</para>
        <para>positionid()</para>
        <para>positionfromid()</para>
        <para>positionkey()</para>
        <para>positionfromkey()</para>
        <para>positionbearoff()</para>
        <para>positionfrombearoff()</para>
        <para>navigate([next=N,[game=N]])</para>
        <para>Match navigation. </para>
        <para>Without any arguments, go to first move of first match. </para>
        <para>With next == N, move forward N game records. </para>
        <para>With game == N, move forward/backward N games. </para>
        <para>Navigate never wraps around. </para>
        <para>On success, returns None. If unable to complete the requested
          number of moves, returns a pair of (next-remaining,game-remaining). </para>
        <para>match([analysis=1/0, boards=1/0, statistics=0/1, verbose=0/1])</para>
        <para>Return the current match. For example, </para>
        <para>&gt; m = gnubg.match()</para>
        <para>Takes the following optional keyword arguments: </para>
        <para>analysis</para>
        <para>When 0, discard analysis data. default is 1. </para>
        <para>boards</para>
        <para>When 1, add current board to move/double records. Default is 1. </para>
        <para>statistics</para>
        <para>When 1, include game and match statistics. Default is 0. </para>
        <para>verbose</para>
        <para>When 1, include derived analysis values. Default is 0. </para>
      </sect3>
      <sect3 id="gnubg-tech_python_match">
        <title>Match description</title>
        <para>gnubg.match() returns a dictionary containing the following items: </para>
        <para>match-info</para>
        <para>General match info </para>
        <para>games</para>
        <para>A sequence, one element per game.</para>
        <para>stats (optional)</para>
        <para>Match statistics. </para>
      </sect3>
      <sect3 id="gnubg-tech_python_matchinfo">
        <title>Match info</title>
        <para>A dictionary containing the following items: </para>
        <para>match-length </para>
        <para>variation</para>
        <para>One of Standard,Nackgammon, Hypergammon1, Hypergammon2 or
          Hypergammon3. </para>
        <para>rules (optional)</para>
        <para>Additional rules used. A subset of NoCube, Crawford and Jacoby. </para>
        <para>X</para>
        <para>O</para>
        <para>Per player information. Each a dictionary containing rating and
          name. </para>
        <para>annotator (optional)</para>
        <para>round (optional)</para>
        <para>place (optional)</para>
        <para>date (optional)</para>
        <para>Sequence of (Day,Month,Year). </para>
        <para>event (optional)</para>
        <para>default-eval-context</para>
        <para>Default evaluation context. A dictionary in the same format as
          returned by evalcontext(). </para>
        <para>default-rollout-context</para>
        <para>Default rollout context. </para>
        <para>Example, </para>
        <para>&gt;&gt;&gt; m['match-info']</para>
        <para>{'match-length': 25, 'rules': ('Crawford',),
          'default-eval-context': {'plies': 2, 'deterministic': 1,
          'noise': 0.0, 'cubeful': 1}, 'annotator': 'GNU 0.14', 'O': {'rating':
          '0 (Exp 0)', 'name': 'Moshe Tissona'}, 'round': 'Final', 'place':
          'Monte Carlo', 'variation': 'Standard', 'default-rollout-context':
          {'n-truncation': 11, 'initial-position': 0, 'trials': 0,
          'stop-on-std': 0, 'variance-reduction': 1, 'late-eval': 0,
          'truncated-rollouts': 0, 'truncate-bearoff2': 1, 'cubeful': 1,
          'truncate-bearoffOS': 1, 'seed': 1177750272, 'quasi-random-dice': 1,
          'minimum-games': 144}, 'date': (13, 7, 2003), 'X': {'rating': '0 (Exp
          0)', 'name': 'Jon Royset'}, 'event': 'World Championship 2003'}</para>
      </sect3>
      <sect3 id="gnubg-tech_python_game">
        <title>Python game</title>
        <para>A dictionary containing the following items: </para>
        <para>info</para>
        <para>General game info. For example, </para>
        <para>&gt;&gt;&gt; m['games'][0]['info']</para>
        <para>{'points-won': 1, 'score-X': 0, 'score-O': 0, 'winner': 'X',
          'resigned': False}</para>
        <para>If no winner is specified, winner is None. </para>
        <para>&gt;&gt;&gt; m['games'][2]['info']</para>
        <para>{'score-X': 2, 'winner': None, 'score-O': 0}</para>
        <para>game</para>
        <para>A Sequence of actions.</para>
        <para>stats (optional)</para>
        <para>Game statistics. Similar entries to <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Game statistics</guimenuitem></menuchoice> from the GUI. </para>
      </sect3>
      <sect3 id="gnubg-tech_python_gameaction">
        <title>Game actions</title>
        <para>Each action is a dictionary </para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-tech_equities">
      <title>Equities explained</title>
      <sect3 id="gnubg-tech_equities_intro">
        <title>Introduction to equities</title>
        <para><application>GNU Backgammon</application> works with many
          different kinds of equities. The equity is defined as the expected
          value of the position. However, this value can be expressed in several
          different metrics and may be calculated with or without taking the
          effect of the cube into consideration. In the following section we
          will describe the equities used and calculated by GNU
        Backgammon.</para>
      </sect3>
      <sect3 id="gnubg-tech_equities_money">
        <title>Money equity</title>
        <para>This is the value of the position in money game, e.g., if your
          equity is +0.4 an you are playing money game with a $1 stake, you will
          win $0.40 on average. The money equity can be calculated with or
          without taking the effect of the doubling cube into consideration, or
            <emphasis>cubeful</emphasis> or <emphasis>cubeless</emphasis>. The
          cubeless equity can be calculated from the basic formula:
          2*p(w)-1+2(p(wg)-p(lg))+3(p(wbg)-p(lbg)). Evaluating the cubeful
          equity is much more difficult; it can either be estimated from the
          cubeless equity by using transformations as outlined by Rick Janowski
          or by constructing a neural net that directly outputs cubeful
	  equities. GNU Backgammon uses the former approach (<xref linkend="gnubg-tech_equities_cubeful"/>).</para>
      </sect3>
      <sect3 id="gnubg-tech_equities_match">
        <title>Match Winning Chance</title>
        <para>In match play we're generally not particular interested in the
          outcome of the individual games as much as the outcome of the entire
          match, so the interesting quantity for match play is <emphasis>match
            winning chance</emphasis> (MWC). As for the money equity the MWC can
          be calculated with and without the effect of the doubling cube. The MWCs
          are generally calculated with the use of a match equity table, which
          contains the chance of winning the match before a game starts, e.g.,
          if the score is 0-0 in a 1pt match each player has 50% chance of
          winning the match before the game starts assuming they're of equal
          skill.</para>
        <para>The cubeless MWC is calculated as: MWC(cubeless) = p(w) * MWC(w) +
          p(l) * MWC(l) + p(wg) * MWC(wg) + p(lg) * MWC(lg) + p(wbg) * MWC(wbg)
          * p(lbg) * MWC(lbg).</para>
        <para>For example, if the w/g/bg distribution is 0 30 60 - 40 10 0 and
          the match score is 1-3 to 5 with the cube on 2 the cubeless MWC is:</para>
        <para>MWC(cubeless)= 30% * 50% + 30% * 0% + 30% * 100% + 10% * 0% + 0% *
          100% + 0% * 0% = 45%,</para>
        <para>so the cubeless MWC is 45%.</para>
        <para>Evaluating the cubeful MWC is more difficult, and as for the
          cubeful money equity it's possible to estimate cubeful MWCs from
          transformation on the w/g/bg distribution or directly calculate it
          from neural nets. GNU Backgammon uses the former approach, but the
          formula are currently not published.</para>
      </sect3>
      <sect3 id="gnubg-tech_eq_norm">
        <title>Normalized equity</title>
        <para>It's generally very difficult to compare MWCs. For example, it's
          hardly worth mentioning a 0.5% MWC error at DMP where as it's a huge
          error at 0-0 to 7. It is therefore of interesting to normalize the
          MWCs to some common scale. The most often used normalization is
          Normalized Money Game Equity (NEMG) where the MWC for any game is
          transformed into the same interval as money game, i.e., -3 to +3 (due
          to anomalies at certain match scores the NEMG can go below -3 and
          above +3). The transformation is linear:</para>
        <para>NEMG = 2 * (MWC-MWC(l))/(MWC(w)-MWC(l)) - 1</para>
        <para>In other words, extrapolation with the following two extrapolation
          points: (MWC(w),+1) and (MWC(l),-1).</para>
        <para>For example, suppose the score is 3-1 to 5 with the cube on 2:
          MWC(l)=0% and MWC(w)=50%:</para>
        <informaltable frame="all">
          <tgroup cols="3">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <colspec colname="c3" colnum="3" colwidth="1*"/>
            <tbody>
              <row>
                <entry>MWC</entry>
                <entry>NEMG</entry>
              </row>
              <row>
                <entry>0%</entry>
                <entry>-1</entry>
              </row>
              <row>
                <entry>25%</entry>
                <entry>0</entry>
              </row>
              <row>
                <entry>50%</entry>
                <entry>+1</entry>
              </row>
              <row>
                <entry>75%</entry>
                <entry>+2</entry>
              </row>
              <row>
                <entry>100%</entry>
                <entry>+3</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>Note that a w/g/bg distribution of 0 100 100 - 0 0 0 gives a NEMG
          of +3 whereas the corresponding money equity is only +2. This is
          because the gammon price is high for that particular score. When both
          players are far from winning the match, e.g., 0-0 to 17 or 1-0 to 17,
          NEMG is very close to the usual money equity.</para>
        <para>NEMG can be calculated from both cubeless and cubeful MWCs.</para>
        <para>A word of caution: A cubeless NEMG calculated from a cubeless MWC
          could be named <emphasis>cubeless equity</emphasis>, but in most
          backgammon literature this term seems to be reserved for the cubeless
          money equity.</para>
      </sect3>
      <sect3 id="gnubg-tech_equities_cubeful">
        <title>Cubeful equities</title>
        <para>This chapter is a brief description of how <application>GNU
            Backgammon</application> calculates cubeful equities. The formula
          build directly on the work by Rick Janowski <ulink url="http://www.bkgm.com/articles/Janowski/cubeformulae.pdf">Take-Points in Money Games</ulink> from 1993.</para>
      <sect4 id="gnubg-tech_equities_cubeful_basic">
        <title>Basic formula for cubeful equities</title>
        <para>The basic formula for cubeful equities as derived by Janowski is</para>
        <para>E(cubeful) = E(dead) * (1-x) + E(live) * x,</para>
        <para>where E(dead) is the dead cube equity (cubeless equity) calculated
          from the standard formula. E(live) is the cubeful equity assuming a
          fully live cube. We'll return to that in the next section. x is the
          cube efficiency. x=0 gives E(cubeful)=E(dead) as one extreme and x=1
          gives E(cubeful)=E(live) as the other extreme. In reality x is
          somewhere in between, which typical values around 0.6 - 0.8.</para>
        <para>Janowski's article doesn't mention cubeful equities, so we use the
          straightforward generalization</para>
        <para>MWC(cubeful) = MWC(dead) * (1-x) + MWC(live) * x.</para>
        <para>as MWC is the entity that is used for match play
        evaluations.</para>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_live">
        <title>Live cube equities</title>
        <para>The live cube equity is the equity assuming that the equity
          changes continuously, so that doubles and takes occurs exactly at the
          double point and take point. For gammon-free play this is the
          well-known take point of 20%. Janowski derives the more general
          formula</para>
        <para>TP = (L-0.5)/(W+L+0.5)</para>
        <para>where W is the average cubeless value of games ultimately won, and
          L is the average cubeless value of games ultimately lost. For example,
          for the following position</para>
        <figure float="0" id="gnubg-fig_cubeful1A">
          <title>Cubeful example 1</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/cubefuleq-ex1.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[cubefuleq-ex1.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para><application>GNU Backgammon</application> evaluates</para>
        <informaltable frame="all">
          <tgroup cols="6">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <colspec colname="c3" colnum="3" colwidth="1*"/>
            <colspec colname="c4" colnum="4" colwidth="1*"/>
            <colspec colname="c5" colnum="5" colwidth="1*"/>
            <colspec colname="c6" colnum="6" colwidth="1*"/>
            <tbody>
              <row>
                <entry> </entry>
                <entry>Win</entry>
                <entry>W(g)</entry>
                <entry>W(bg)</entry>
                <entry>L(g)</entry>
                <entry>L(bg)</entry>
              </row>
              <row>
                <entry>static:</entry>
                <entry>0.454</entry>
                <entry>0.103</entry>
                <entry>0.001</entry>
                <entry>0.106</entry>
                <entry>0.003</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>and hence W=(0.454 + 0.103 + 0.001)/0.454=1.229 and
          L=(0.556+0.106+0.003)/0.556) = 1.196. For gammon-free positions, e.g.,
          a race, W=1 and L=1.</para>
        <para>The live cube equity is now based on piecewise linear
          interpolation between the points (0%,-L), (TP,-1), (CP,+1), and
          (100%,+W): if my winning chance is 0 I lose L points, at my take point
          I lose 1 point, at my cash point I cash 1 point, and when I have a
          certain win I win W points:</para>
        <figure float="0" id="gnubg-fig_mgtp">
          <title>mgtp</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/mgtp.png"/>
            </imageobject>
            <textobject role="texinfo">
              <programlisting>
Equity
  1.5 ++------------+-------------+-------------+-------------+------------++
      +             +             +             +           cubeless ****** +
      |                                                    live cube####*****
    1 ++                                                  ###cubeful*****$$++
      |                                                ####$$$$ *****       |
      |                                              ###$$ *****            |
  0.5 ++                                          ###$ ****                ++
      |                                        ###*****                     |
      |                                     ##****                          |
      |                                  *****                              |
    0 ++                            *****#                                 ++
      |                        ******##                                     |
      |                    *****$###                                        |
 -0.5 ++               *****$$###                                          ++
      |           *****  $$###                                              |
      |       **** $$$$$###                                                 |
   -1 ++ *****##########                                                   ++
      ***#####                                                              |
      +             +             +             +             +             +
 -1.5 ++------------+-------------+-------------+-------------+------------++
      0            0.2           0.4           0.6           0.8            1
                                       Wins
              </programlisting>
            </textobject>
          </mediaobject>
        </figure>
        <para>For match play there is no simple formula, since redoubles can
          only occur a limited number of times.</para>
        <para>The live cube take point is generally calculated as</para>
        <para>TP(live, n Cube)=TP(effective, n cube) * (1 - TP(live, 2n cube))</para>
        <para>So to calculate the live cube take points for a 1-cube at 3-0 to 7
          we need the live cube take points for the 4-cube and the 2-cube. For
          the position above and using Woolsey's match equity table the live
          cube take point are:</para>
        <informaltable frame="all">
          <tgroup cols="3">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <colspec colname="c3" colnum="3" colwidth="1*"/>
            <tbody>
              <row>
                <entry>Cube value </entry>
                <entry>TP for Black </entry>
                <entry>TP for White</entry>
                <entry> </entry>
<entry> </entry>
</row>
              <row>
                <entry>4</entry>
                <entry>0%</entry>
                <entry>41%</entry>
              </row>
              <row>
                <entry>2</entry>
                <entry>15%</entry>
                <entry>38.5%</entry>
              </row>
              <row>
                <entry>1</entry>
                <entry>24.5%</entry>
                <entry>27.3%</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>The calculation of these are left as an exercise to the reader.</para>
        <para>Ignoring backgammons, the gammon rates for White and Black are
          0.106/54.6=19% and 0.103/0.454=22%, respectively. If White wins the
          game his MWC will be</para>
        <para>81% * MWC(-3,-7) + 19% * MWC(-2,-7) = 78%</para>
        <para>and if Black wins his MWC will be</para>
        <para>78% * MWC(-4,-6) + 22% * MWC(-4,-5) = 41%.</para>
        <para>If White cashes 1 point he has MWC(-3,-7)=76% and if Black cashes
          he has MWC(-4,-6)=36%. Analogous to money game the live cube MWC is
          calculated as piecewise linear interpolation between (0%,22%),
          (24.5%,24%), (72.7%,36%), and (100%,41%) (from black's point of view):</para>
        <figure float="0" id="gnubg-fig_mptp">
          <title>mptp</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/mptp.png"/>
            </imageobject>
            <textobject role="texinfo">
              <programlisting>
MWC
 0.42 ++------------+-------------+-------------+-------------+------------++
      +             +             +             +           cubeless ********
  0.4 ++                                                   live cube #****#++
 0.38 ++                                                     cubeful**$$$$$++
      |                                                     #*****          |
 0.36 ++                                                #****              ++
      |                                             *****                   |
 0.34 ++                                        ****#                      ++
      |                                    *****##                          |
 0.32 ++                               *****###                            ++
  0.3 ++                           *****####                               ++
      |                        ****$####                                    |
 0.28 ++                   ****$$$###                                      ++
      |               ***** $$####                                          |
 0.26 ++          ***** $$$###                                             ++
      |       **** $$$$$####                                                |
 0.24 ++  ****##########                                                   ++
 0.22 ****####                                                             ++
      +             +             +             +             +             +
  0.2 ++------------+-------------+-------------+-------------+------------++
      0            0.2           0.4           0.6           0.8            1
                                       Wins
              </programlisting>
            </textobject>
          </mediaobject>
        </figure>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_0ply">
        <title>0-ply Cubeful equities</title>
        <para>Having established the live cube equities and MWCs we're now in
          position to calculate the 0-ply cubeful equities.</para>
        <para>Let's start with money game: the cubeless equity is -0.097 and the
          live cube equity can be determined from the figure above as -0.157.
          Thus, the cubeful equity is -0.138.</para>
        <para>For the match play example at the score 3-0 the cubeless MWC is
          29.1% and from the figure Black using wins=45.4% we can determine the
          live cube MWC to be 29.2%. Using a value of x=0.68 we arrive at a
          cubeful MWC of 29.17%.</para>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_nply">
        <title>n-ply Cubeful equities</title>
        <para>The previous section concerned the calculation of 0-ply cubeful
          equities, so how so <application>GNU Backgammon</application>
          calculate cubeful 2-ply equities? The answer is: by simple recursion:</para>
        <para>Equity=0</para>
        <para>Loop over 21 dice rolls</para>
        <para>Find best move for given roll</para>
        <para>Equity = Equity + Evaluate n-1 ply equity for resulting position</para>
        <para>End Loop</para>
        <para>Equity = Equity/36</para>
        <para>Note that evaluating the n-1 ply equity involves a cube decision,
          since the opponent may double, so <application>GNU
          Backgammon</application> will actually calculate the two n-1 ply
          equities: (a) assuming no double, and (b) assuming double, take. These
          two equities are combined with the equity for a pass, and the optimum
          of these three is added to the resulting equity. For a cubeful 2-ply
          evaluation <application>GNU Backgammon</application> will end up
          calculating the following cubeful 0-ply equities: centered 1-cube,
          opponent owns 2-cube, owned 4-cube, and opponent owns 8-cube.</para>
        <para>Note that the 2-ply level does not use the cube efficiency, it's
          not used until at the 0-ply level, but it's possible to calculate an
          effective one by isolating x in the basic cube formula:</para>
        <para>x(eff) = (E(2-ply cubeful) - E(2-ply dead))/(E(2-ply live)-E(2-ply
          dead)).</para>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_efficiency">
        <title>The cube efficiency</title>
        <para>The cube efficiency is obviously an important parameter,
          unfortunately there haven't been much investigation carried out, so
            <application>GNU Backgammon</application> basically uses the values
          0.6-0.7 originally suggested by Rick Janowski:</para>
        <informaltable frame="all">
          <tgroup cols="2">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <tbody>
              <row>
                <entry>Position Class </entry>
                <entry>x (Cube efficiency)</entry>
                <entry> </entry>
</row> <row>
                <entry>Two-sided (exact) bearoff</entry>
                <entry>n/a</entry>
              </row>
              <row>
                <entry>One-sided bearoff</entry>
                <entry>0.6</entry>
              </row>
              <row>
                <entry>Crashed</entry>
                <entry>0.68</entry>
              </row>
              <row>
                <entry>Contact</entry>
                <entry>0.68</entry>
              </row>
              <row>
                <entry>Race</entry>
                <entry>linear interpolation between 0.6 and 0.7</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>For race <application>GNU Backgammon</application> uses linear
          interpolation based on pip count for the player on roll. A pip count
          of 40 gives x=0.6 and 120 gives x=0.7. If the pip count is below 40 or
          above 120 values of x=0.6 and x=0.7 are used, respectively.</para>
        <para>For the two sided bearoff positions the cubeful money equity is
          already available from the database, so for money game there is no
          need to calculate cubeful equities via Janowski's formula. However,
          the cubeful equities for money game cannot be used for match play.
          Instead of using a fixed value of x, say, 0.6, <application>GNU
            Backgammon</application> will calculate an effective value based on
          the cubeful money equity. The cubeful MWC is calculated as usual, but
          with the calculated x.</para>
        <para>There is obviously room for improvements. For example, holding
          games should intuitively have a lower cube efficiency, since it's very
          difficult to double effectively: either it's not good enough or you've
          lost the market by a mile after rolling a high double or hitting a
          single shot. Similarly, backgames will often have a low cube
          efficiency, whereas blitzes have may have a higher cube
        efficiency.</para>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_decisions">
        <title>Cube decisions</title>
        <para><application>GNU Backgammon</application>'s cube decisions are
          simple based on calculations of cubeful equities. For a double
          decision <application>GNU Backgammon</application> calculates the
          cubeful equity for <emphasis>no double</emphasis> and the cubeful
          equity for <emphasis>double, take</emphasis>. Combined with the equity
          for <emphasis>double, pass</emphasis>, it's possible to determine the
          correct cube action.</para>
        <para>The figure below shows the relevant cubeful equities for White and
          black's cube decisions in sample position from earlier.</para>
        <figure float="0" id="gnubg-fig_mgcd">
          <title>mgcd</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/mgcd.png"/>
            </imageobject>
            <textobject role="texinfo">
              <programlisting>
Equity
  2.5 ++------------+-------------+-------------+-------------+-----------$##
      +             +             +             +      centered cube$******#+
    2 ++                                               O owns 2-cube#######++
      |                                                X owns 2-cube#$$$$$$ |
  1.5 ++                                             $$$$     ####         ++
      |                                           $$$$    ####      *********
    1 ++                                      $$$$     ###**********       ++
      |                                    $$$$     ******                  |
  0.5 ++                                $$$$  ******                       ++
      |                             $$$$ ******##                           |
    0 ++                          $$******###                              ++
 -0.5 ++                      ******   ###                                 ++
      |                  *****     ####                                     |
   -1 ++      ***********$$     ###                                        ++
      ********      $$$      ###                                            |
 -1.5 ++         $$$     ####                                              ++
      |      $$$$    ####                                                   |
   -2 ++  $$$ #######                                                      ++
      +#######      +             +             +             +             +
 -2.5 #+------------+-------------+-------------+-------------+------------++
      0            0.2           0.4           0.6           0.8            1
                                       Wins
              </programlisting>
            </textobject>
          </mediaobject>
        </figure>
        <para>On 0-ply Black will double when the green curve (White owns
          2-cube) is above the red curve (centered cube), and White will take as
          long as the green curve is below 1. Similarly, White will double when
          the blue curve (Black owns 2-cube) is below the red curve (centered
          cube), and Black takes as long as the blue curve is above -1.</para>
        <para>Note that <application>GNU Backgammon</application> doesn't
          calculate the take point or double point explicitly. The cube decision
          is simply made by comparing equities from the figure.</para>
      </sect4>
      <sect4 id="gnubg-tech_equities_cubeful_beyond">
        <title>Beyond the simple model</title>
        <para>Janowski has developed two other models for cubeful equities. The
          first is a generalization of the one used by <application>GNU
            Backgammon</application>; it introduces two cube efficiencies
          instead of one. Often you may see that the cube efficiencies are
          different for the two players, and the <emphasis>refined general
          model</emphasis> as it is named by Janowski, tries to take this into
          consideration by using different cube efficiency parameters for the
          two players. For example, the blitzer may have another cube efficiency
          that the blitzee.</para>
        <para>The second model is not published, but redefines the cube
          efficiency into a value that can be understood more intuitively and
          calculate easily from rollouts.</para>
      </sect4>
      </sect3>
      </sect2>
        <sect2 id="gnubg-tech_postionid">
          <title>A technical description of the Position ID</title>
          <para>This section describes a method for compactly recording a
            backgammon position. It demonstrates how to encode a position into
            10 binary bytes, which is useful for minimizing the space used when
            recording large numbers of positions in memory or on disk. There is
            also an ASCII representation in 14 characters, which is convenient
            for output to the screen, for copying and pasting to transfer
            positions between programs which support the format, and for
            communicating positions via Usenet news or e-mail. The 10 byte
            binary format is called the key, and the 14 character ASCII format
            is the ID.</para>
          <para>The key is essentially a bit string (imagine you start with an
            empty sequence of bits, and continue adding either
            <emphasis>0</emphasis> or <emphasis>1</emphasis> to the end). The
            way to build up a sequence that corresponds to a given position is:</para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>For every point around the board (starting at the ace point
                of the player on roll, continuing around to the 24 point and
                ending at the bar): </para>
            </listitem>
            <listitem>
              <para>append as many 1s as the player not on roll
                (the opponent) has on that point (if any). </para>
            </listitem>
            <listitem>
              <para>append a 0. </para>
            </listitem>
            <listitem>
              <para>For every point around the board (starting at the ace point
                of the opponent, continuing around to the opponent's 24 point
                and ending at the bar): </para>
            </listitem>
            <listitem>
              <para>append as many 1s as the the player on roll has
                on that point (if any). </para>
            </listitem>
            <listitem>
              <para>append a 0. </para>
            </listitem>
            <listitem>
              <para>Pad out the string to 80 bits with 0s. </para>
            </listitem>
          </orderedlist>
          <para>The worst-case representation will require 80 bits: you can see
            that there are always 50 0 bits even if there are no checkers at
            all. Each player has a maximum of 15 checkers in play (not yet borne
            off) which require a 1 bit wherever they are positioned. That's 30
            bits to take of all checkers, plus the 50 bits of overhead for a
            total of 80 bits (the last bit is always 0 and isn't strictly
            necessary, but it makes the code slightly easier). This bit string
            should be stored in little-endian order when packed into bytes (i.e.
            the first bits in the string are stored in the least significant
            bits of the first byte).</para>
          <para>As an example, here's what the starting position looks like in
            the key format:</para>
          <informaltable frame="all">
            <tgroup cols="2">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>opponent has no checkers on his ace to 5 points</entry>
                </row>
                <row>
                  <entry>11111 0</entry>
                  <entry>5 checkers on the 6 point</entry>
                </row>
                <row>
                  <entry>0</entry>
                  <entry>empty bar</entry>
                </row>
                <row>
                  <entry>111 0</entry>
                  <entry>3 on the 8</entry>
                </row>
                <row>
                  <entry>0 0 0 0</entry>
                  <entry>no others in his outfield</entry>
                </row>
                <row>
                  <entry>11111 0</entry>
                  <entry>5 on the midpoint</entry>
                </row>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>none in our outfield</entry>
                </row>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>or in our board, until...</entry>
                </row>
                <row>
                  <entry>11 0</entry>
                  <entry>two on the 24 point</entry>
                </row>
                <row>
                  <entry>0</entry>
                  <entry>none on the bar</entry>
                </row>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>player on roll has no checkers on his ace to 5 points</entry>
                </row>
                <row>
                  <entry>11111 0</entry>
                  <entry>5 checkers on the 6 point</entry>
                </row>
                <row>
                  <entry>0</entry>
                  <entry>empty bar</entry>
                </row>
                <row>
                  <entry>111 0</entry>
                  <entry>3 on the 8</entry>
                </row>
                <row>
                  <entry>0 0 0 0</entry>
                  <entry>no others in his outfield</entry>
                </row>
                <row>
                  <entry>11111 0</entry>
                  <entry>5 on the midpoint</entry>
                </row>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>none in opponent's outfield</entry>
                </row>
                <row>
                  <entry>0 0 0 0 0</entry>
                  <entry>or in opponent's board, until...</entry>
                </row>
                <row>
                  <entry>11 0</entry>
                  <entry>two on the 24 point</entry>
                </row>
                <row>
                  <entry>0</entry>
                  <entry>none on the bar</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para>so altogether it's:</para>
          <para>00000111110011100000111110000000000011000000011111001110000011111000000000001100</para>
          <para>In little endian bytes it looks like:</para>
          <informaltable frame="all">
            <tgroup cols="6">
              <colspec colname="c1" colnum="1" colwidth="1*"/>
              <colspec colname="c2" colnum="2" colwidth="1*"/>
              <colspec colname="c3" colnum="3" colwidth="1*"/>
              <colspec colname="c4" colnum="4" colwidth="1*"/>
              <colspec colname="c5" colnum="5" colwidth="1*"/>
              <colspec colname="c6" colnum="6" colwidth="1*"/>
              <tbody>
                <row>
                  <entry>11100000</entry>
                  <entry>01110011</entry>
                  <entry>11110000</entry>
                  <entry>00000001</entry>
                  <entry>00110000</entry>
                  <entry>11100000</entry>
                  <entry>01110011</entry>
                  <entry>11110000</entry>
                  <entry>00000001</entry>
                  <entry>00110000</entry>
                </row>
                <row>
                  <entry>0xE0</entry>
                  <entry>0x73</entry>
                  <entry>0xF0</entry>
                  <entry>0x01</entry>
                  <entry>0x30</entry>
                  <entry>0xE0</entry>
                  <entry>0x73</entry>
                  <entry>0xF0</entry>
                  <entry>0x01</entry>
                  <entry>0x30</entry>
                </row>
              </tbody>
            </tgroup>
          </informaltable>
          <para>so the 10 byte key (in hex) is E0 73 F0 01 30 E0 73 F0 01
          30.</para>
          <para>The ID format is simply the <ulink url="http://www.ietf.org/rfc/rfc2045.txt">Base64</ulink> encoding
            of the key. (Technically, a Base64 encoding of 80 binary bits should
            consist of 14 characters followed by two = padding characters, but
            this padding is omitted in the ID format.)</para>
          <para>To continue the above example, splitting the 10 8-bit bytes into
            14 6-bit groups gives:</para>
          <para>111000 000111 001111 110000 000000 010011 000011 100000 011100
            111111 000000 000001 001100 000000</para>
          <para>In Base64 encoding, these groups are respectively represented
            as:</para>
          <para>4 H P w A T D g c / A B M A</para>
          <para>So, the position ID of the checkers at the start of the game is
            simply:</para>
          <para>4HPwATDgc/ABMA</para>
          <para>You can set the board in gnubg either by writing the position ID
            into the position text input field in the GUI or by executing the
            command</para>
          <para>set board 4HPwATDgc/ABMA.</para>
          <para><emphasis>Notes</emphasis></para>
          <orderedlist continuation="restarts" inheritnum="ignore">
            <listitem>
              <para>This encoding is obviously not as compact as it could be: in
                particular, there are lots of redundant representations of
                illegal positions where both players have checkers on the same
                point. Theoretically, it would be possible to get it down to 64
                bits by using <ulink url="http://www.bkgm.com/rgb/rgb.cgi?view+371">Walter Trice's </ulink>
                <ulink url="http://www.bkgm.com/rgb/rgb.cgi?view+371"><emphasis>D() expressions</emphasis></ulink>, but I think you'd have to be a mathematical masochist
                to try it! </para>
            </listitem>
            <listitem>
              <para>Thanks to Tom Keith and David desJardins for their
                suggestions on simplifying the encoding without increasing the
                worst case length. </para>
            </listitem>
          </orderedlist>
      </sect2>
      <sect2 id="gnubg-tech_matchid">
        <title>A technical description of the Match ID</title>
        <para>This section describes how the match ID is calculated. The match
          ID can be used for easy exchange of positions for gnubg users in
          conjunction with the position ID. The match key is a 9 byte
          representation of the match score, match length, value of cube, owner
          of cube, Crawford game flag, player on roll, player to make a
          decision, doubled flag, resigned flag, and the dice rolled. The match
          ID is the 12 character Base64 encoding of the match key. Match key</para>
        <para>The match key is a bit string of length 66:</para>
        <informaltable frame="all">
          <tgroup cols="8">
            <tbody>
              <row>
                <entry>1-4</entry>
               <entry>5-6</entry>
               <entry>7</entry>
               <entry>8</entry>
               <entry>9-11</entry>
               <entry>12</entry>
               <entry>13</entry>
               <entry>14-15</entry>
               <entry>16-18</entry>
               <entry>19-21</entry>
               <entry>22-36</entry>
               <entry>37-51</entry>
               <entry>52</entry>
              </row>
              <row>
                <entry>Cube</entry>
                <entry>CubeOwner</entry>
                <entry>DiceOwner</entry>
                <entry>Crawford</entry>
                <entry>GameState</entry>
                <entry>TurnOwner</entry>
                <entry>Double</entry>
                <entry>Resign</entry>
                <entry>Dice1</entry>
                <entry>Dice2</entry>
                <entry>MatchLen x 15 </entry>
                <entry>Score1 x 15</entry>
                <entry>Score2 x 15</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Bit 1-4 contains the 2-logarithm of the cube value. For
              example, a 8-cube is encoded as 0011 binary (or 3), since 2 to the
              power of 3 is 8. The maximum value of the cube in with this
              encoding is 2 to the power of 15, i.e., a 32768-cube. </para>
          </listitem>
          <listitem>
            <para>Bit 5-6 contains the cube owner. 00 if player 0 owns the cube,
              01 if player 1 owns the cube, or 11 for a centered cube. </para>
          </listitem>
          <listitem>
            <para>Bit 7 is the player on roll or the player who did roll (0 and
              1 for player 0 and 1, respectively). </para>
          </listitem>
          <listitem>
            <para>Bit 8 is the Crawford flag: 1 if this game is the Crawford
              game, 0 otherwise. </para>
          </listitem>
          <listitem>
            <para>Bit 9-11 is the game state: 000 for no game started, 001 for
              playing a game, 010 if the game is over, 011 if the game was
              resigned, or 100 if the game was ended by dropping a cube. </para>
          </listitem>
          <listitem>
            <para>Bit 12 indicates whose turn it is. For example, suppose player
              0 is on roll then bit 7 above will be 0. Player 0 now decides to
              double, this will make bit 12 equal to 1, since it is now player
              1's turn to decide whether she takes or passes the cube. </para>
          </listitem>
          <listitem>
            <para>Bit 13 indicates whether an doubled is being offered. 0 if no
              double is being offered and 1 if a double is being offered.
            </para>
          </listitem>
          <listitem>
            <para>Bit 14-15 indicates whether an resignation was offered. 00 for
              no resignation, 01 for resign of a single game, 10 for resign of a
              gammon, or 11 for resign of a backgammon. The player offering the
              resignation is the inverse of bit 12, e.g., if player 0 resigns a
              gammon then bit 12 will be 1 (as it is now player 1 now has to
              decide whether to accept or reject the resignation) and bit 13-14
              will be 10 for resign of a gammon. </para>
          </listitem>
          <listitem>
            <para>Bit 16-18 and bit 19-21 is the first and second die,
              respectively. 0 if the dice has not yet be rolled, otherwise the
              binary encoding of the dice, e.g., if 5-2 was rolled bit 16-21
              will be 101-010. </para>
          </listitem>
          <listitem>
            <para>Bit 22 to 36 is the match length. The maximum value for the
              match length is 32767. A match length of zero indicates that the
              game is a money game. </para>
          </listitem>
          <listitem>
            <para>Bit 37-51 and bit 52-66 is the score for player 0 and player 1
              respectively. The maximum value of the match score is 32767.
            </para>
          </listitem>
        </orderedlist>
        <para>For example, assume the score is 2-4 in a 9 point match with
          player 0 holding a 2-cube, and player 1 has just rolled 52. The match
          key for this will be (note that the bit order is reversed below for
          readability)</para>
        <para>1000 00 1 0 100 1 0 00 101 010 100100000000000 010000000000000
          001000000000000</para>
        <para>In little endian the bytes looks like:</para>
        <para>01000001 10001001 00101010 00000001 00100000 00000000 00100000
          00000000 00</para>
        <para>0x41 0x89 0x2A 0x01 0x20 0x00 0x20 0x00 0x00</para>
        <para>Analogous to the position ID from the previous section the match
          ID format is simply the Base64 encoding of the key.</para>
        <para>To continue the example above, the 9 8-bit bytes are grouped into
          12 6-bits groups:</para>
        <para>010000 011000 100100 101010 000000 010010 000000 000000 001000
          000000 000000 000000</para>
        <para>In Base64 encoding, the groups are represented as:</para>
        <para>Q Y k q A S A A I A A A</para>
        <para>So, the match id is simply:</para>
        <para>QYkqASAAIAAA</para>
        <para>If someone post a match ID you can set up the position in gnubg by
          writing or pasting it into the Match ID text input field on the main
          window, or by executing the command</para>
        <para>set matchid QYkqASAAIAAA.</para>
      </sect2>
      <sect2 id="gnubg-tech_css">
        <title>Description of the CSS style sheet</title>
        <para>As mentioned above <application>GNU Backgammon</application>
          writes a CSS style sheet along with the generated XHTML file. The CSS
          style sheet may be written verbatim in the header section of the XHTML
          file, to an external file named gnubg.css, or inside the tags using
          the style attribute. If you wish to make any modifications to the
          style sheet without modifying the actual source code of
            <application>GNU Backgammon</application> you have to choose one of
          the first two methods. Note that the special export for Kit Woolsey's
          GammOnLine uses the third method since the XHTML is pasted into a web
          page without the possibility to modify the header section of the page
          where the style sheet is defined. Thus, it's not possible to modify
          the style of the generated XHTML for GammOnLine without modifications
          of the source code or extensive search and replace in the generated
          XHTML.</para>
        <para>Below follows a description of the CSS classes used in the XHTML
          export:</para>
        <informaltable frame="all">
          <tgroup cols="2">
            <tbody>
              <row>
                <entry>Class</entry>
                <entry>Description</entry>
              </row>
              <row>
                <entry>.movetable</entry>
                <entry>Style applied to the entire table used for the move analysis</entry>
              </row>
              <row>
                <entry>.moveheader</entry>
                <entry>The header of the move analysis table</entry>
              </row>
              <row>
                <entry>.movenumber</entry>
                <entry>The rank number of a move in the move analysis</entry>
              </row>
              <row>
                <entry>.moveply</entry>
                <entry>The column indicating the number of plies or rollout</entry>
              </row>
              <row>
                <entry>.movemove</entry>
                <entry>The formatted move, e.g., 13/7 8/7.</entry>
              </row>
              <row>
                <entry>.moveequity</entry>
                <entry>The column with the equity or MWC.</entry>
              </row>
              <row>
                <entry>.movethemove</entry>
                <entry>Special style for row that contains the actual move chosen by the player</entry>
              </row>
              <row>
                <entry>.moveodd</entry>
                <entry>Special style for the odd rows. Can be used to give an alternating color for the rows.</entry>
              </row>
              <row>
                <entry>.percent</entry>
                <entry>Style for the game winning probabilities and equities in the move analysis.</entry>
              </row>
              <row>
                <entry>.blunder</entry>
                <entry>Emphasis blunders, e.g., <emphasis>Alert: missed double</emphasis> or <emphasis>Alert: bad move</emphasis>.</entry>
              </row>
              <row>
                <entry>.joker</entry>
                <entry>Emphasis very good or bad rolls, e.g., <emphasis>Alert: unlucky roll</emphasis>.</entry>
              </row>
              <row>
                <entry>.stattable</entry>
                <entry>The style applied to the entire table with game, match, and session statistics</entry>
              </row>
              <row>
                <entry>.stattableheader</entry>
                <entry>The header row of the statistics table</entry>
              </row>
              <row>
                <entry>.result</entry>
                <entry>Style for the text indicating the outcome of the game or match, e.g., <emphasis>J�rn Thyssen wins 16 points</emphasis>.</entry>
              </row>
              <row>
                <entry>.tiny</entry>
                <entry>Currently unused.</entry>
              </row>
              <row>
                <entry>.cubedecision</entry>
                <entry>The style applied to the entire cube decision table</entry>
              </row>
              <row>
                <entry>.cubedecisionheader</entry>
                <entry>Style for the header row of the cube decision table</entry>
              </row>
              <row>
                <entry>.cubeequity</entry>
                <entry>Style for any equity or MWC in the cube decision table</entry>
              </row>
              <row>
                <entry>.cubeaction</entry>
                <entry>Style for the text indicating the correct cube action</entry>
              </row>
              <row>
                <entry>.cubeply</entry>
                <entry>Style for the text that states the level of evaluation</entry>
              </row>
              <row>
                <entry>.cubeprobs</entry>
                <entry>Style for the game winning probabilities in the cube decision table</entry>
              </row>
              <row>
                <entry>.comment</entry>
                <entry>The style applied to the entire table used for annotations or comments, e.g., the kibitzing from imported SGG files</entry>
              </row>
              <row>
                <entry>.commentheader</entry>
                <entry>The style applied to the header row of the annotations' table</entry>
              </row>
              <row>
                <entry>.number</entry>
                <entry>Currently unused</entry>
              </row>
              <row>
                <entry>.fontfamily</entry>
                <entry>Style applied to the entire body of the XHTML document.</entry>
              </row>
              <row>
                <entry>.block</entry>
                <entry>Style applied to the images in the export to avoid gaps between individual pictures both horizontally and vertically.</entry>
              </row>
              <row>
                <entry>.positionid</entry>
                <entry>Style for the Position ID and match ID.</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
    </sect2>
  </sect1>
  <sect1 id="gnubg-faq">
    <title>Frequently Asked Questions</title>
    <sect2 id="gnubg-faq_general">
      <title>General questions</title>
      <sect3 id="gnubg-faq_general_gnubg">
        <title>What is <application>GNU Backgammon</application>?</title>
        <para><application>GNU Backgammon</application> (gnubg) is a program for
          playing and analysing backgammon positions, games and matches. It's
          based on a neural network. You may play <application>GNU
          Backgammon</application> using the command line or a graphical
          interface based on GTK+.</para>
      </sect3>
      <sect3 id="gnubg-faq_general_os">
        <title>What operating systems are supported?</title>
        <para><application>GNU Backgammon</application> is mostly developped
          on <emphasis>GNU/Linux</emphasis>. It also builds and runs under
          other Unix operating systems like those derived from
          <emphasis>BSD</emphasis> or
          <emphasis>Solaris</emphasis>. The main prerequisite is the
          availability of the GLib library at version 2.6 or later.
	</para>
	<para>Installable packages for
          <emphasis>MS Windows</emphasis> and <emphasis>Mac OS X</emphasis> are
          available for download at the project official website. Already
	  built packages are often provided by Linux distributions as well.
	</para>
	<para>When you successfully port
          GNU Backgammon to other operating systems, you are welcome to give us
          a note at <ulink url="mailto:bug-gnubg@gnu.org">the GNU backgammon
            mailing list.</ulink>
        </para>
      </sect3>
      <sect3 id="gnubg-faq_general_getit">
        <title>Where do I get it?</title>
        <para>The official website is <ulink url="http://www.gnubg.org/">http://www.gnubg.org</ulink>. Binaries and source code for
            <application>GNU Backgammon</application> can be downloaded from
          this site. Up to date source code can be accessed through <ulink url="https://savannah.gnu.org/cvs/?group=gnubg">CVS</ulink>.</para>
      </sect3>
      <sect3 id="gnubg-faq_general_pay">
        <title>What do I have to pay for <application>GNU
          Backgammon</application>?</title>
        <para><application>GNU Backgammon</application> is <emphasis>Free
            Software</emphasis> and is a part of the <emphasis>GNU
          Project</emphasis>. You may download it for free. For more information
          see the <ulink url="http://www.gnu.org/licenses/gpl.html">GNU General
            Public License</ulink>. But be aware that <application>GNU
            Backgammon</application> is not <emphasis>public domain
          software</emphasis> or <emphasis>shareware</emphasis> as you perhaps
          know from <emphasis>MS Windows</emphasis>. <application>GNU
          Backgammon</application> is free as in <emphasis>freedom</emphasis>,
          i.e. all the source code is there for you to inspect, change or
          distribute as long as you keep said license.</para>
      </sect3>
      <sect3 id="gnubg-faq_general_gnu">
        <title>This GNU stuff sounds interesting</title>
        <para>Take a look at the <ulink url="http://www.gnu.org/">GNU home
          page</ulink>. It's also the page for Free Software Foundation.</para>
      </sect3>
      <sect3 id="gnubg-faq_general_backgammon">
        <title>I want to learn more about backgammon</title>
        <para>A good place to start is <ulink url="http://www.bkgm.com/">Backgammon Galore</ulink>. For an extensive link collection, go to
            <ulink url="http://www.chicagopoint.com/links.html">Gammon
          Links.</ulink>
        </para>
      </sect3>
      <sect3 id="gnubg-faq_general_questions">
        <title>Though I really read all the documentation I still have
          questions</title>
        <para>Send an email to <ulink url="mailto:bug-gnubg@gnu.org">the GNU
            backgammon mailing list.</ulink> If it is a bug, be sure to include
          the name of your operating system, the version of gnubg you use, and
          any error messages you receive. Try to describe exactly what happens
          before the error occurs.</para>
      </sect3>
      <sect3 id="gnubg-faq_general_ideas">
        <title>I want to make a few proposals, I have new ideas</title>
        <para>You're welcome! Send an email with your suggestions to <ulink url="mailto:bug-gnubg@gnu.org">the GNU backgammon mailing
          list.</ulink>
        </para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_install">
      <title>How to install</title>
      <sect3 id="gnubg-faq_install_other">
        <title>Do I need some other software to run <application>GNU
          Backgammon</application>?</title>
        <para>No. Everything you need is included in the binaries.</para>
        <para>If you want to use the 3D board version on Linux, you might have
          to install the additional libraries that can be found as well on
            <ulink url="http://www.gnubg.org/index.php?itemid=24">this
          page</ulink>. (acepoint's directory)</para>
      </sect3>
      <sect3 id="gnubg-faq_install_new">
        <title>I want to install a newer version</title>
        <para>Go ahead, your settings should be saved.</para>
      </sect3>
      <sect3 id="gnubg-faq_install_compile">
        <title>I would like to compile it from the source code</title>
        <para>Good luck to you! Download the source code and make sure to read
          one of the two following two items.</para>
      </sect3>
      <sect3 id="gnubg-faq_install_compilelinux">
        <title>What software do I need for compiling under GNU/Linux?</title>
        <para>Unpack the <application>GNU Backgammon</application> snapshots and
          follow the instructions of the file `INSTALL'. </para>
      </sect3>
      <sect3 id="gnubg-faq_install_compilems">
        <title>What software do I need for compiling under MS Windows?</title>
        <para>Follow the instructions at <ulink url="http://www.gnubg.org/index.php?itemid=50">http://www.gnubg.org/index.php?itemid=50</ulink>.</para>
      </sect3>
      <sect3 id="gnubg-faq_install_nocompile">
        <title>It does not compile</title>
        <para>Check that you have installed all necessary development packages.</para>
        <para>Look for warnings or errors during compiling. If you still don't
          have a clue, send a message to
        <email>bug-gnubg@gnu.org</email>.</para>
      </sect3>
      <sect3 id="gnubg-faq_install_cpu">
        <title>On what CPU will <application>GNU Backgammon</application> run
          fastest?</title>
	<para><application>GNU Backgammon</application>'s speed depends on the
        CPU only. It doesn't need much memory (any machine not totally obsolete
        will have enough) and does little or no I/O (a fast disk or a SSD won't make any difference).
        </para>
        <para>The table below lists CPUs and the result of the command <menuchoice><guimenu>Analyse</guimenu><guimenuitem>Evaluation speed</guimenuitem></menuchoice>, showing the relative speed of various processors.
        Note that these numbers are not directly comparable with those given by the similar command from <application>eXtreme Gammon</application>.
        </para>
        <informaltable frame="all">
          <tgroup cols="7">
            <tbody>
              <row>
                <entry>Evals/sec</entry>
                <entry>CPU</entry>
                <entry>System/Main board</entry>
                <entry>RAM</entry>
                <entry>OS </entry>
                <entry>GNUBG-Version</entry>
                <entry> </entry>
              </row>
              <row>
                <entry>449500</entry>
                <entry>Intel Core i5-2400 3.10 GHz</entry>
                <entry>Dell Optiplex 790</entry>
                <entry>4 GB</entry>
                <entry>CentOS 6</entry>
                <entry>1.02</entry>
                <entry>4 threads</entry>
              </row>
              <row>
                <entry>258600</entry>
                <entry>Intel Core i5-2400 3.10 GHz</entry>
                <entry>Dell Optiplex 790</entry>
                <entry>4 GB</entry>
                <entry>CentOS 6</entry>
                <entry>1.02</entry>
                <entry>2 threads</entry>
              </row>
              <row>
                <entry>237600</entry>
                <entry>Intel Core i5-3320M 2.60 GHz</entry>
                <entry>Lenovo T430</entry>
                <entry>4 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.04</entry>
                <entry>2 threads</entry>
              </row>
              <row>
                <entry>197700</entry>
                <entry>Intel Core i5-3320M 2.60 GHz</entry>
                <entry>Lenovo T430</entry>
                <entry>4 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.02</entry>
                <entry>2 threads</entry>
              </row>
              <row>
                <entry>131400</entry>
                <entry>Intel Core i5-2400 3.10 GHz</entry>
                <entry>Dell Optiplex 790</entry>
                <entry>4 GB</entry>
                <entry>CentOS 6</entry>
                <entry>1.02</entry>
                <entry>1 thread</entry>
              </row>
              <row>
                <entry>125100</entry>
                <entry>Intel Core 2 Duo P8400 2.26 GHz</entry>
                <entry>Dell Latitude E6400</entry>
                <entry>2 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.02</entry>
                <entry>2 threads</entry>
              </row>
              <row>
                <entry>119700</entry>
                <entry>Intel Core i5-3320M 2.60 GHz</entry>
                <entry>Lenovo T430</entry>
                <entry>4 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.04</entry>
                <entry>1 thread</entry>
              </row>
              <row>
                <entry>100100</entry>
                <entry>Intel Core i5-3320M 2.60 GHz</entry>
                <entry>Lenovo T430</entry>
                <entry>4 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.02</entry>
                <entry>1 thread</entry>
              </row>
              <row>
                <entry>64300</entry>
                <entry>Intel Core 2 Duo T7500 2.2 GHz</entry>
                <entry>Dell Latitude D630</entry>
                <entry>4 GB</entry>
                <entry>FreeBSD 9.2</entry>
                <entry>1.02</entry>
                <entry>1 thread</entry>
              </row>
              <row>
                <entry>63500</entry>
                <entry>Intel Core 2 Duo P8400 2.26 GHz</entry>
                <entry>Dell Latitude E6400</entry>
                <entry>2 GB</entry>
                <entry>Win XP SP3</entry>
                <entry>1.02</entry>
                <entry>1 thread</entry>
              </row>
              <row>
                <entry>37600</entry>
                <entry>Intel Pentium 4 2.8 GHz</entry>
                <entry>Dell Optiplex GX270</entry>
                <entry>1 GB</entry>
                <entry>CentOS 5</entry>
                <entry>1.02</entry>
              </row>
              <row>
                <entry>28000</entry>
                <entry>Intel Core Duo 1.66 GHz</entry>
                <entry>Mac mini Core Duo</entry>
                <entry>512 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14-mingw</entry>
              </row>
              <row>
                <entry>27000</entry>
                <entry>Intel Pentium M 735 (1.7 GHz)</entry>
                <entry>AOpen 1557-J</entry>
                <entry>1024 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14-mingw</entry>
              </row>
              <row>
                <entry>26000</entry>
                <entry>Intel Celeron 331 2.66 GHz</entry>
                <entry>Dell Dimension 3100</entry>
                <entry>512 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>24500</entry>
                <entry>AMD Sempron 2800+ (2000 MHz)</entry>
                <entry>Asus K8V-X</entry>
                <entry>768 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>23000</entry>
                <entry>Intel Pentium 4 2.8 GHz</entry>
                <entry>Asus P4P800D</entry>
                <entry>1024 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>21759</entry>
                <entry>AMD Athlon64 3000+ (32bit mode)</entry>
                <entry>Acer Aspire 1522</entry>
                <entry>512 MB</entry>
                <entry>Kubuntu 5.04</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>20120</entry>
                <entry>AMD Athlon XP 2500+ (1833 Mhz)</entry>
                <entry>MSI K7N-Delta2</entry>
                <entry>1024 MB</entry>
                <entry>Suse Linux 9.2</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>19200</entry>
                <entry>Intel Pentium M 1.6 GHz</entry>
                <entry>IBM ThinkPad X41</entry>
                <entry>1024 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.14.3-devel</entry>
              </row>
              <row>
                <entry>14400</entry>
                <entry>Intel Pentium III-M 1GHz</entry>
                <entry>Sony Vaio PCG-R600HFPD</entry>
                <entry>256 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>0.16-mingw</entry>
              </row>
              <row>
                <entry>9170</entry>
                <entry>Intel Celeron 750 MHz</entry>
                <entry>Toshiba Satellite 4600</entry>
                <entry>256 MB</entry>
                <entry>Win XP SP1</entry>
                <entry>1.04</entry>
              </row>
              <row>
                <entry>8520</entry>
                <entry>Intel Celeron 750 MHz</entry>
                <entry>Toshiba Satellite 4600</entry>
                <entry>256 MB</entry>
                <entry>Win XP SP1</entry>
                <entry>1.02</entry>
              </row>
              <row>
                <entry>6990</entry>
                <entry>Intel Celeron 600 MHz</entry>
                <entry>Toshiba Satellite 4310</entry>
                <entry>128 MB</entry>
                <entry>Win XP SP2</entry>
                <entry>1.02</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_start">
      <title>Running <application>GNU Backgammon</application></title>
      <sect3 id="gnubg-faq_start_error">
        <title>I get an error message when starting</title>
        <para>Well, your computer wants to communicate with you. Give it a
          chance and read (and try to understand) what it is telling you. Then
          read the next items carefully:</para>
      </sect3>
      <sect3 id="gnubg-faq_start_missing">
        <title><application>GNU Backgammon</application> complains about missing
          files</title>
        <para><application>GNU Backgammon</application> reads several different
          files at start-up. It will first try to read a file called gnubg.wd.
          This is a file which contains all the neural net weights and is
          necessary for the program to evaluate positions. If this file is not
          found, or found corrupted or with an incompatible version,
            <application>GNU Backgammon</application> will search for a weights
          file called gnubg.weights. This file also contains the neural net
          weights, but is stored in ASCII format. If none of these files are
          found, <application>GNU Backgammon</application> will start, but it
          will give you a warning about these missing files, and it will play
            <emphasis>very</emphasis> poorly.</para>
        <para><application>GNU Backgammon</application> will also read the
          bearoff databases at start-up. There are usually two bearoff
          databases. The first is called gnubg_os0.bd, and has stored data about
          the bearoff probabilities of all position where both players have 15
          or fewer checkers left on their six home board points. If this file is
          not found, <application>GNU Backgammon</application> will create a
          heuristic bearoff database for these positions. This database is a
          also called the 'One Sided Database', since it evaluates each player
          separately. The other bearoff database is called gnubg_ts0.bd. This
          bearoff database contains win probabilities for all bearoff positions
          with six or less checkers. It also contains cubeful equities (Money
          Game) for all the positions. If this file is not found at start-up,
            <application>GNU Backgammon</application> will evaluate late bearoff
          positions with the one sided bearoff database.</para>
      </sect3>
      <sect3 id="gnubg-faq_start_beginner">
        <title>Starting from the WinXP menu it plays like a beginner</title>
        <para>Open the MS Windows menu and go to the entry for gnubg.
          Right-click with the mouse and choose `properties'. Check, if the
          `working path' is the same directory as the `*.exe'-file one line
          above. If not, adjust the working path.</para>
      </sect3>
      <sect3 id="gnubg-faq_start_screen">
        <title>My screen mixes up while starting <application>GNU
          Backgammon</application></title>
        <para>Install the newest driver for your graphic card. Be sure that you
          have chosen at least a desktop resolution of 65535 (16 bit color
          depth). If your card is a ATI Rage <emphasis>somewhat</emphasis> there
          still might be some problems with the graphical interface (GTK+) and
          MS Windows.</para>
      </sect3>
      <sect3 id="gnubg-faq_start_gtk">
        <title>I only get a command-line interface</title>
        <para>Using MS Windows, just click on the correct menu entry
            (`<application>GNU Backgammon</application> for windows'). If it
          still doesn't work, check whether `c:\[path-to-your-gnubg]\gnubg.exe'
          exists or not.</para>
        <para>GNU/Linux users should check if <ulink url="http://www.gtk.org/">GTK+</ulink> is installed.</para>
      </sect3>
      <sect3 id="gnubg-faq_start_settings">
        <title>When I restart <application>GNU Backgammon</application> all my
          settings are gone</title>
        <para>Did you save your settings <menuchoice><guimenu>Settings</guimenu><guimenuitem>Save settings</guimenuitem></menuchoice> before you quit?</para>
      </sect3>
      <sect3 id="gnubg-faq_start_cl">
        <title>I do not need this graphical stuff</title>
        <para>For <emphasis>GNU/Linux</emphasis> users: open a terminal and run
            <command>gnubg -t</command>.</para>
        <para><productname>MS Windows</productname> users: Look for a file
          called <command>gnubg-cli.exe</command> in <application>GNU
          Backgammon</application>'s install directory or open the MS Windows
          menu <menuchoice><guimenu>Start</guimenu><guimenuitem>Run...</guimenuitem></menuchoice> and type
          <command>c:\[path-to-your-gnubg]\gnubg-cli.exe</command>. There is
          also a menu entry GNU Backgammon Command Line Interface.</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_play">
      <title>Playing backgammon</title>
      <sect3 id="gnubg-faq_play_session">
        <title>What is the difference of a new game or match or session?</title>
        <para>When you start a new match, you will be asked to play to a certain
          amount of points (for example, 7 points). The player who firstly
          reaches this amount wins the match. Starting a new session means
          playing to an infinite amount. Be aware that the rules do slightly
          differ, mainly the Jacoby rule is applies to sessions and the Crawford
          to match play.</para>
      </sect3>
      <sect3 id="gnubg-faq_play_beaver">
        <title>What is a beaver in Backgammon?</title>
        <para>A beaver is only allowed in a money game session. To beaver means
          to redouble, retaining control of the cube, immediately after your
          opponent doubles. For more information see the <ulink url="http://www.bkgm.com/glossary.html#B">glossary at Backgammon
            Galore</ulink>.</para>
      </sect3>
      <sect3 id="gnubg-faq_play_move">
        <title>How do I move the checkers?</title>
        <para>The easiest way to move checkers is to "<emphasis>drag and
          drop</emphasis>." Put your mouse pointer over a checker you want to
          move, press the left mouse button and drag the checker to the desired
          point, holding down the button while dragging.</para>
        <para>If you prefer to use mouse clicks, the left mouse button is for
          the left die shown on your board. Right click your mouse for the right
          die.</para>
        <para>If you always want the higher number displayed on the left, go to
          the menu <menuchoice><guimenu>Settings</guimenu><guimenuitem>Appearance</guimenuitem><guimenuitem> General </guimenuitem></menuchoice> and select Show higher die on left.</para>
      </sect3>
      <sect3 id="gnubg-faq_play_5">
        <title>Why am I allowed to place more than 5 checkers on a point?</title>
        <para>The official backgammon tournament rules allow to put
          up to all 15 checkers on a point. Playing with a maximum of 5
          checkers, sometimes known as the Egyptian Rule, is no longer
          supported by
          <application>GNU Backgammon</application>.</para>
      </sect3>
      <sect3 id="gnubg-faq_play_poorly">
        <title><application>GNU Backgammon</application> plays poorly</title>
        <para>Are you sure? If the answer is yes you should think about going to
          Monte Carlo this summer and win the Backgammon World Championship. If
          this plan fails, check whether the weights file is loaded at start-up.
          See also <xref linkend="gnubg-faq_start_missing"/></para>
      </sect3>
      <sect3 id="gnubg-faq_play_strong">
        <title><application>GNU Backgammon</application> is too strong for me</title>
        <para>Go to the menu <menuchoice><guimenu>Settings</guimenu><guimenuitem>Players</guimenuitem></menuchoice> and change the values for Player 0. There is also a set
          of predefined settings you may choose from.</para>
      </sect3>
      <sect3 id="gnubg-faq_play_cheat">
        <title>I think the bot is cheating</title>
        <para>In its default configuration, the dice generator does not cheat.
          In the menu Settings you may choose between different random dice
          generators. If you still think <application>GNU
          Backgammon</application> is cheating, program your own dice generator
          or roll manually. It doesn't cheat!</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_settings">
      <title>Settings</title>
      <sect3 id="gnubg-faq_settings_name">
        <title>Where can I change the name of the human player?</title>
        <para>Go to the menu <menuchoice><guimenu>Settings</guimenu><guimenuitem> Players....</guimenuitem></menuchoice> and click on Player 1. At the top there is a field to
          change the human player's name.</para>
      </sect3>
      <sect3 id="gnubg-faq_settings_colors">
        <title>How do I change the colors?</title>
        <para>Go to the menu <menuchoice><guimenu>Settings</guimenu><guimenuitem> Appearance </guimenuitem></menuchoice>. Here you may change the color of checkers, the points
          and the board itself.</para>
      </sect3>
      <sect3 id="gnubg-faq_settings_beeps">
        <title>How do I stop the annoying beeps?</title>
        <para>Go to the menu<menuchoice><guimenu>Settings</guimenu><guimenuitem> Appearance </guimenuitem></menuchoice> and click on the `General' tab at the right. Disable the
          option `Beep on illegal input'.</para>
      </sect3>
      <sect3 id="gnubg-faq_settings_plies">
        <title>What are Plies?</title>
        <para>A ply describes how far <application>GNU Backgammon</application>
          evaluates the position. <emphasis>0-ply</emphasis> means that
            <application>GNU Backgammon</application> estimates the worth of the
          position as it is. A <emphasis>1-ply</emphasis> evaluation looks one
          step deeper, i.e. it evaluates the position after making the best
          possible move for each of the 21 different rolls and returns the
          averaged result. <emphasis>2-ply</emphasis> is another roll further
          and so on.</para>
        <para>The more plies you choose, the more you strengthen
            <application>GNU Backgammon</application>. Keep in mind that this
          will also decrease the playing speed.</para>
        <para>Note also that <emphasis>0-ply</emphasis> in <application>GNU
            Backgammon</application> is equivalent to the
          <emphasis>1-ply</emphasis> evaluation of Snowie.</para>
        <para>It's possible that Snowie's is a <emphasis>playing</emphasis> ply
          while gnubg's is a <emphasis>position evaluation</emphasis> ply. When
          playing at 1-ply Snowie will make each possible move for the player's
          roll (that's 1 ply) and analyse the resulting positions. Playing at
          2-ply it will take each of those positions and make all the opponent
          moves for all possible rolls (the 2nd ply) and then analyse the
          resulting positions. In <application>GNU Backgammon</application> the
          initial set of possible moves is taken for granted, i.e. not counted
          as a ply, because gnubg's plies are position evaluation plies. Thus,
          for each of those possible moves a 0-ply analysis is done. gnubg's
          discounting of the first set of moves perhaps makes the counting seem
          funny.</para>
        <para>Looking at it a different way, if you give <application>GNU
            Backgammon</application> a position and analyse it at 1-ply, it will
          make all the moves for all possible rolls (the 1st ply) and then
          analyse the resulting positions. With Snowie it will assume that the
          position arose from a move (that's a pretend 1st ply) then make all
          the moves for all possible rolls (the 2nd ply) and analyse them. This
          time it's Snowie that seems to be counting strangely.</para>
      </sect3>
      <sect3 id="gnubg-faq_settings_noise">
        <title>What is noise?</title>
        <para>Noise is a facility for disturbing <application>GNU
          Backgammon</application>'s 0-ply evaluation. Raising the noise level
          decreases its playing strength.</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_analysing">
      <title>Analysing</title>
      <sect3 id="gnubg-faq_analysing_id">
        <title>What are these funny letters at the right bottom?</title>
        <para>You will find a small window titled `GNUbg ID'
          at the bottom of the <application>GNU Backgammon</application> window.
	It contains an short, textual, representation of the position at hand,
	suitable for easily copying and pasting positions.</para>
        <para>It is composed of a `Position ID' describing the checkers position and a `Match ID' for the other features (match score, cube position and value, dice, who is on roll...).
	A detailed description of both formats is found earlier in <xref linkend="gnubg-tech_postionid"/>.</para>
       <para>Pasting a `XGID' (a similar shortcut used by <application>eXtreme Gammon</application>) there is recognized as well.</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_edit">
        <title>How do I set up a position manually?</title>
        <para>Open a new game, match or session. If gnubg already rolls the
          dice, don't bother. Press `edit', and either type the position_id and
          press Enter on your keyboard, or use the mouse to set up the checkers.</para>
        <para>A mouse click at the border of the board empties the point. A left
          or right click sets up a certain amount of checkers depending on where
          exactly on the pip you click. Set up the cube with a right mouse click
          on it.</para>
        <para>You can also drag and drop checkers when holding down the Ctrl
          key.</para>
        <para>Finally, go to the menu and select `Game, Set turn' to choose the
          player on roll. The dice will then disappear.</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_import">
        <title>Which formats can I use to import matches and positions?</title>
        <para>Import of matches and positions from a number of file formats is
          possible: (.gam) GammonEmpire Game,
          (.gam) PartyGammon Game, (.mat) Jellyfish Match, (.pos) Jellyfish
          Position, (.sgf) Gnu Backgammon File, (.sgg) GamesGrid Save Game,
          (.tmg) TrueMoneyGames, (.txt) Snowie Text</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_sides">
        <title>How can I switch the players sides?</title>
        <para>Go to the menu `Game' and click on `Swap players'.</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_error">
        <title>What do <emphasis>!</emphasis> and <emphasis>?</emphasis> mean?</title>
        <para>After analysing a game or a match <application>GNU
          Backgammon</application> is able to do some comments on checker play
          or cube decisions. Open the menu `Window, Game record' and you will
          see a list of the moves. If the actual move or cube decision differs
          from the best, <application>GNU Backgammon</application> will put a
          comment on it.</para>
        <para>The default settings are:</para>
        <informaltable frame="all">
          <tgroup cols="3">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <colspec colname="c3" colnum="3" colwidth="1*"/>
            <tbody>
              <row>
                <entry>-0.040</entry>
                <entry>(doubtful):</entry>
                <entry>?!</entry>
              </row>
              <row>
                <entry>-0.080</entry>
                <entry>(bad):</entry>
                <entry>?</entry>
              </row>
              <row>
                <entry>-0.160</entry>
                <entry>(very bad):</entry>
                <entry>??</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>You may change these comment in the menu `Window, Annotation'
          choosing another comment for moves and/or double</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_rate">
        <title>How is the error rate determined?</title>
        <para><application>GNU Backgammon</application> determines a player's
          strength according to its average error (per move):</para>
        <informaltable frame="all">
          <tgroup cols="2">
            <colspec colname="c1" colnum="1" colwidth="1*"/>
            <colspec colname="c2" colnum="2" colwidth="1*"/>
            <tbody>
              <row>
                <entry>Average Error</entry>
                <entry>Skill Level</entry>
              </row>
              <row>
                <entry>0.000 .. 0.005</entry>
                <entry>Extra-terrestrial</entry>
              </row>
              <row>
                <entry>0.005 .. 0.010</entry>
                <entry>World class</entry>
              </row>
              <row>
                <entry>0.010 .. 0.015</entry>
                <entry>Expert</entry>
              </row>
              <row>
                <entry>0.015 .. 0.020</entry>
                <entry>Advanced</entry>
              </row>
              <row>
                <entry>0.020 .. 0.025</entry>
                <entry>Intermediate</entry>
              </row>
              <row>
                <entry>0.025 .. 0.030</entry>
                <entry>Beginner</entry>
              </row>
              <row>
                <entry>0.030 ..</entry>
                <entry>Novice</entry>
              </row>
            </tbody>
          </tgroup>
        </informaltable>
        <para>After analysing a game, match or session you can see the summary
          in the menu `Analyse, ... statistics'. Note that you can't change the
          ranges of these values.</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_pips">
        <title>What does Pips mean?</title>
        <para>The pip count is a measurement showing the total number of pips
          required for a player to bear off all checkers from the current
          position. It can be regarded as a rough estimate of the
            <emphasis>raceness</emphasis> of the position. A player with a
          lower pip count may in many situations want to try to race, whilst the
          opponent (with the higher pip count) may want to try blocking/holding.
          See also the <ulink url="http://www.bkgm.com/gloss/lookup.cgi?pip+count">explanation on
            BackGammon Galore</ulink>.</para>
        <para>(For the non-english speaking community it might be helpful to
          know that when you roll a six and a five, the total pips of that roll
          is eleven.)</para>
      </sect3>
      <sect3 id="gnubg-faq_analysing_epc">
        <title>What does EPC mean?</title>
        <para>When bearing off checkers, you may notice a display showing the
          current <emphasis>EPC</emphasis> value (next to the display of
            <emphasis>Pips</emphasis>). The EPC display can be turned on or off
          under menu <emphasis>Settings -&gt; Options -&gt;
          Display</emphasis>.</para>
        <para><emphasis>EPC</emphasis> stands for Effective Pip Count, and is an
          alternative measurement of the <emphasis>goodness</emphasis> of the
          position. The usual pip count can be a misleading
          <emphasis>goodness</emphasis> estimate when both players are bearing
          off. What is more important (for making cubing decisions) is
            <emphasis>the expected number of rolls</emphasis> each player needs
          to bear off hes checkers.</para>
        <para>The effective pip count is defined as this expected number of
          remaining rolls, multiplied with the average number of pips in a roll,
          which is 8.167. (The average number of pips in a roll would be 7 if
          rolling a double wouldn't yield a double pip count. A double-6
          yields 24 pips, not 12.)</para>
        <para>Thus, EPC takes into account not only the current pip count, but
          also the expected pip wastage:</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Effective Pip Count (EPC) = pip count + expected pip wastage
            </para>
          </listitem>
        </orderedlist>
        <para>An example:</para>
        <orderedlist continuation="restarts" inheritnum="ignore">
          <listitem>
            <para>Position: 5 checkers on the 1-point, 4 checkers on the
              2-point. </para>
          </listitem>
          <listitem>
            <para>Pip count: 5x1 + 4x2 = 13 </para>
          </listitem>
          <listitem>
            <para>EPC: 2.189 (expected number of remaining rolls) * 8.167 =
              17.878 </para>
          </listitem>
          <listitem>
            <para>Wasted: 17.878 - 13 = 4.878 </para>
          </listitem>
        </orderedlist>
        <para>It's clear (hopefully) that the expected pip wastage (and hence
          the <emphasis>EPC</emphasis>) increases with more checkers on lower
          points (e.g. you get pip wastage when rolling a 6 to bear off a
          checker from the 2- or 1-point).</para>
        <para>It is further <ulink url="http://www.bkgm.com/gloss/lookup.cgi?effective+pip+count">explained on BackGammon Galore</ulink>, especially in a <ulink url="http://www.bkgm.com/rgb/rgb.cgi?view+1076">post by Douglas
          Zare</ulink>.</para>
        <para>How do one calculate the EPC then, or the expected number of
          remaining rolls? GnuBG uses the one-sided bearoff database, which
          contains the chance of bearing off the final checker in any given
          number of rolls. A player would probably use some quite complicated
          heuristics (please see the aforementioned post by Douglas Zare,
            <emphasis>and do get back here and explain it!</emphasis>)</para>
      </sect3>
    </sect2>
    <sect2 id="gnubg-faq_abbr">
      <title>Abbreviations</title>
      <sect3 id="gnubg-faq_abbr_gwc">
        <title>GWC?</title>
        <para><emphasis>GWC</emphasis> is an abbreviation for game winning
          chances.</para>
      </sect3>
      <sect3 id="gnubg-faq_abbr_mwc">
        <title>MWC?</title>
        <para><emphasis>MWC</emphasis> is an abbreviation for match winning
          chances.</para>
      </sect3>
      <sect3 id="gnubg-faq_abbr_dp">
        <title>DP?</title>
        <para>In the menu `Analyse, Game/Match/Session statistics' you will see
          a window with some statistics. Near the bottom, you'll see four lines
          beginning with `Missed ... and Wrong ...'. <emphasis>dp</emphasis>
          means <emphasis>doubling point</emphasis> and describes a situation in
          the game, where you probably should have doubled your opponent.</para>
      </sect3>
      <sect3 id="gnubg-faq_abbr_cp">
        <title>CP?</title>
        <para>Cash-point(CP) is
          your opponent's take-point now seen from your side of the
          board (your cash-point which equals 100% minus your opponent's
          take-point). <application>GNU Backgammon</application>
          uses the term <emphasis>missed double below cash-point</emphasis>,
          which means that the player should have doubled, and had he done so,
          his opponent should take. <emphasis>Missed double above CP</emphasis>
          in a similar way means that the correct cube-action was double pass.</para>
        <para>If you are the leader in the match, the relevant take- and
          double-points will often look something like this (where TP*=CP):</para>
        <figure float="0" id="gnubg-fig_doubleline">
          <title>The double line</title>
          <mediaobject>
            <imageobject>
              <imagedata fileref="images/doubleline.png"/>
            </imageobject>
	  <textobject>
		  <phrase>[[doubleline.png]]</phrase>
	  </textobject>
          </mediaobject>
        </figure>
        <para>The double windows (intervals) are:</para>
        <para>[DP;CP] = Your double window! This window does not contain any
          information about redoubles but only the distance to the point where
          you do not want to play for the double amount of points.</para>
        <para>[TP;DP] = 100% minus your opponent's double window now.</para>
        <para>[reTP;reDP] = 100% minus your opponent's double window after he
          has taken.</para>
      </sect3>
      <sect3 id="gnubg-faq_abbr_tg">
        <title>TG?</title>
        <para><emphasis>TG</emphasis> is an abbreviation for <emphasis>too
          good</emphasis> (to double). It points to a situation in the game,
          where you probably should have kept the cube (mostly because of
          decent, sometimes very good, gammon chances) rather than double out
          your opponent.</para>
      </sect3>
      <sect3 id="gnubg-faq_abbr_epc">
        <title>EPC?</title>
	<para>See <xref linkend="gnubg-faq_analysing_epc"/>
        </para>
        <para>
          <emphasis>This should be an internal link, not an external one. But I
            can't figure out how to link internally to a subsection.
          Anyone?</emphasis>
        </para>
      </sect3>
    </sect2>
  </sect1>
<appendix id="legal" lang="en">
  <title>GNU Free Documentation License</title>
  <simpara>Version 1.3, 3 November 2008</simpara>
  <simpara>
    Copyright &#169; 2000, 2001, 2002, 2007, 2008
    <ulink url="http://www.fsf.org/">Free Software Foundation, Inc.</ulink>
  </simpara>
  <simpara>
    Everyone is permitted to copy and distribute verbatim copies of this
    license document, but changing it is not allowed.
  </simpara>
  <bridgehead id="section0" renderas="sect2">
    0. PREAMBLE
  </bridgehead>
  <simpara>
    The purpose of this License is to make a manual, textbook, or other
    functional and useful document &#8220;free&#8221; in the sense of freedom:
    to assure everyone the effective freedom to copy and redistribute it, with
    or without modifying it, either commercially or
    noncommercially. Secondarily, this License preserves for the author and
    publisher a way to get credit for their work, while not being considered
    responsible for modifications made by others.
  </simpara>
  <simpara>
    This License is a kind of &#8220;copyleft&#8221;, which means that
    derivative works of the document must themselves be free in the same
    sense. It complements the GNU General Public License, which is a copyleft
    license designed for free software.
  </simpara>
  <simpara>
    We have designed this License in order to use it for manuals for free
    software, because free software needs free documentation: a free program
    should come with manuals providing the same freedoms that the software
    does. But this License is not limited to software manuals; it can be used
    for any textual work, regardless of subject matter or whether it is
    published as a printed book. We recommend this License principally for
    works whose purpose is instruction or reference.
  </simpara>
  <bridgehead id="section1" renderas="sect2">
    1. APPLICABILITY AND DEFINITIONS
  </bridgehead>
  <simpara>
    This License applies to any manual or other work, in any medium, that
    contains a notice placed by the copyright holder saying it can be
    distributed under the terms of this License. Such a notice grants a
    world-wide, royalty-free license, unlimited in duration, to use that work
    under the conditions stated herein. The &#8220;Document&#8221;, below,
    refers to any such manual or work. Any member of the public is a licensee,
    and is addressed as &#8220;you&#8221;. You accept the license if you copy,
    modify or distribute the work in a way requiring permission under
    copyright law.
  </simpara>
  <simpara>
    A &#8220;Modified Version&#8221; of the Document means any work containing
    the Document or a portion of it, either copied verbatim, or with
    modifications and/or translated into another language.
  </simpara>
  <simpara>
    A &#8220;Secondary Section&#8221; is a named appendix or a front-matter
    section of the Document that deals exclusively with the relationship of
    the publishers or authors of the Document to the Document&#x2019;s overall
    subject (or to related matters) and contains nothing that could fall
    directly within that overall subject. (Thus, if the Document is in part a
    textbook of mathematics, a Secondary Section may not explain any
    mathematics.) The relationship could be a matter of historical connection
    with the subject or with related matters, or of legal, commercial,
    philosophical, ethical or political position regarding them.
  </simpara>
  <simpara>
    The &#8220;Invariant Sections&#8221; are certain Secondary Sections whose
    titles are designated, as being those of Invariant Sections, in the notice
    that says that the Document is released under this License. If a section
    does not fit the above definition of Secondary then it is not allowed to
    be designated as Invariant. The Document may contain zero Invariant
    Sections. If the Document does not identify any Invariant Sections then
    there are none.
  </simpara>
  <simpara>
    The &#8220;Cover Texts&#8221; are certain short passages of text that are
    listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says
    that the Document is released under this License. A Front-Cover Text may
    be at most 5 words, and a Back-Cover Text may be at most 25 words.
  </simpara>
  <simpara>
    A &#8220;Transparent&#8221; copy of the Document means a machine-readable
    copy, represented in a format whose specification is available to the
    general public, that is suitable for revising the document
    straightforwardly with generic text editors or (for images composed of
    pixels) generic paint programs or (for drawings) some widely available
    drawing editor, and that is suitable for input to text formatters or for
    automatic translation to a variety of formats suitable for input to text
    formatters. A copy made in an otherwise Transparent file format whose
    markup, or absence of markup, has been arranged to thwart or discourage
    subsequent modification by readers is not Transparent. An image format is
    not Transparent if used for any substantial amount of text. A copy that is
    not &#8220;Transparent&#8221; is called &#8220;Opaque&#8221;.
  </simpara>
  <simpara>
    Examples of suitable formats for Transparent copies include plain ASCII
    without markup, Texinfo input format, LaTeX input format, SGML or XML
    using a publicly available DTD, and standard-conforming simple HTML,
    PostScript or PDF designed for human modification. Examples of transparent
    image formats include PNG, XCF and JPG. Opaque formats include proprietary
    formats that can be read and edited only by proprietary word processors,
    SGML or XML for which the DTD and/or processing tools are not generally
    available, and the machine-generated HTML, PostScript or PDF produced by
    some word processors for output purposes only.
  </simpara>
  <simpara>
    The &#8220;Title Page&#8221; means, for a printed book, the title page
    itself, plus such following pages as are needed to hold, legibly, the
    material this License requires to appear in the title page. For works in
    formats which do not have any title page as such, &#8220;Title Page&#8221;
    means the text near the most prominent appearance of the work&#x2019;s
    title, preceding the beginning of the body of the text.
  </simpara>
  <simpara>
    The &#8220;publisher&#8221; means any person or entity that distributes
    copies of the Document to the public.
  </simpara>
  <simpara>
    A section &#8220;Entitled XYZ&#8221; means a named subunit of the Document
    whose title either is precisely XYZ or contains XYZ in parentheses
    following text that translates XYZ in another language. (Here XYZ stands
    for a specific section name mentioned below, such as
    &#8220;Acknowledgements&#8221;, &#8220;Dedications&#8221;,
    &#8220;Endorsements&#8221;, or &#8220;History&#8221;.) To &#8220;Preserve
    the Title&#8221; of such a section when you modify the Document means that
    it remains a section &#8220;Entitled XYZ&#8221; according to this
    definition.
  </simpara>
  <simpara>
    The Document may include Warranty Disclaimers next to the notice which
    states that this License applies to the Document. These Warranty
    Disclaimers are considered to be included by reference in this License,
    but only as regards disclaiming warranties: any other implication that
    these Warranty Disclaimers may have is void and has no effect on the
    meaning of this License.
  </simpara>
  <bridgehead id="section2" renderas="sect2">
    2. VERBATIM COPYING
  </bridgehead>
  <simpara>
    You may copy and distribute the Document in any medium, either
    commercially or noncommercially, provided that this License, the copyright
    notices, and the license notice saying this License applies to the
    Document are reproduced in all copies, and that you add no other
    conditions whatsoever to those of this License. You may not use technical
    measures to obstruct or control the reading or further copying of the
    copies you make or distribute. However, you may accept compensation in
    exchange for copies. If you distribute a large enough number of copies you
    must also follow the conditions in section 3.
  </simpara>
  <simpara>
    You may also lend copies, under the same conditions stated above, and you
    may publicly display copies.
  </simpara>
  <bridgehead id="section3" renderas="sect2">
    3. COPYING IN QUANTITY
  </bridgehead>
  <simpara>
    If you publish printed copies (or copies in media that commonly have
    printed covers) of the Document, numbering more than 100, and the
    Document&#x2019;s license notice requires Cover Texts, you must enclose
    the copies in covers that carry, clearly and legibly, all these Cover
    Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the
    back cover. Both covers must also clearly and legibly identify you as the
    publisher of these copies. The front cover must present the full title
    with all words of the title equally prominent and visible. You may add
    other material on the covers in addition. Copying with changes limited to
    the covers, as long as they preserve the title of the Document and satisfy
    these conditions, can be treated as verbatim copying in other respects.
  </simpara>
  <simpara>
    If the required texts for either cover are too voluminous to fit legibly,
    you should put the first ones listed (as many as fit reasonably) on the
    actual cover, and continue the rest onto adjacent pages.
  </simpara>
  <simpara>
    If you publish or distribute Opaque copies of the Document numbering more
    than 100, you must either include a machine-readable Transparent copy
    along with each Opaque copy, or state in or with each Opaque copy a
    computer-network location from which the general network-using public has
    access to download using public-standard network protocols a complete
    Transparent copy of the Document, free of added material. If you use the
    latter option, you must take reasonably prudent steps, when you begin
    distribution of Opaque copies in quantity, to ensure that this Transparent
    copy will remain thus accessible at the stated location until at least one
    year after the last time you distribute an Opaque copy (directly or
    through your agents or retailers) of that edition to the public.
  </simpara>
  <simpara>
    It is requested, but not required, that you contact the authors of the
    Document well before redistributing any large number of copies, to give
    them a chance to provide you with an updated version of the Document.
  </simpara>
  <bridgehead id="section4" renderas="sect2">
    4. MODIFICATIONS
  </bridgehead>
  <simpara>
    You may copy and distribute a Modified Version of the Document under the
    conditions of sections 2 and 3 above, provided that you release the
    Modified Version under precisely this License, with the Modified Version
    filling the role of the Document, thus licensing distribution and
    modification of the Modified Version to whoever possesses a copy of it. In
    addition, you must do these things in the Modified Version:
  </simpara>
  <orderedlist numeration="upperalpha">
    <listitem>
      <simpara>
        Use in the Title Page (and on the covers, if any) a title distinct
        from that of the Document, and from those of previous versions (which
        should, if there were any, be listed in the History section of the
        Document). You may use the same title as a previous version if the
        original publisher of that version gives permission.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        List on the Title Page, as authors, one or more persons or entities
        responsible for authorship of the modifications in the Modified
        Version, together with at least five of the principal authors of the
        Document (all of its principal authors, if it has fewer than five),
        unless they release you from this requirement.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        State on the Title page the name of the publisher of the Modified
        Version, as the publisher.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve all the copyright notices of the Document.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Add an appropriate copyright notice for your modifications adjacent to
        the other copyright notices.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Include, immediately after the copyright notices, a license notice
        giving the public permission to use the Modified Version under the
        terms of this License, in the form shown in the Addendum below.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve in that license notice the full lists of Invariant Sections
        and required Cover Texts given in the Document&#x2019;s license
        notice.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Include an unaltered copy of this License.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve the section Entitled &#8220;History&#8221;, Preserve its
        Title, and add to it an item stating at least the title, year, new
        authors, and publisher of the Modified Version as given on the Title
        Page. If there is no section Entitled &#8220;History&#8221; in the
        Document, create one stating the title, year, authors, and publisher
        of the Document as given on its Title Page, then add an item
        describing the Modified Version as stated in the previous sentence.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve the network location, if any, given in the Document for
        public access to a Transparent copy of the Document, and likewise the
        network locations given in the Document for previous versions it was
        based on.  These may be placed in the &#8220;History&#8221;
        section. You may omit a network location for a work that was published
        at least four years before the Document itself, or if the original
        publisher of the version it refers to gives permission.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        For any section Entitled &#8220;Acknowledgements&#8221; or
        &#8220;Dedications&#8221;, Preserve the Title of the section, and
        preserve in the section all the substance and tone of each of the
        contributor acknowledgements and/or dedications given therein.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve all the Invariant Sections of the Document, unaltered in
        their text and in their titles. Section numbers or the equivalent are
        not considered part of the section titles.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Delete any section Entitled &#8220;Endorsements&#8221;. Such a section
        may not be included in the Modified Version.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Do not retitle any existing section to be Entitled
        &#8220;Endorsements&#8221; or to conflict in title with any Invariant
        Section.
      </simpara>
    </listitem>
    <listitem>
      <simpara>
        Preserve any Warranty Disclaimers.
      </simpara>
    </listitem>
  </orderedlist>
  <simpara>
    If the Modified Version includes new front-matter sections or appendices
    that qualify as Secondary Sections and contain no material copied from the
    Document, you may at your option designate some or all of these sections
    as invariant. To do this, add their titles to the list of Invariant
    Sections in the Modified Version&#x2019;s license notice. These titles
    must be distinct from any other section titles.
  </simpara>
  <simpara>
    You may add a section Entitled &#8220;Endorsements&#8221;, provided it
    contains nothing but endorsements of your Modified Version by various
    parties &#8212; for example, statements of peer review or that the text
    has been approved by an organization as the authoritative definition of a
    standard.
  </simpara>
  <simpara>
    You may add a passage of up to five words as a Front-Cover Text, and a
    passage of up to 25 words as a Back-Cover Text, to the end of the list of
    Cover Texts in the Modified Version. Only one passage of Front-Cover Text
    and one of Back-Cover Text may be added by (or through arrangements made
    by) any one entity. If the Document already includes a cover text for the
    same cover, previously added by you or by arrangement made by the same
    entity you are acting on behalf of, you may not add another; but you may
    replace the old one, on explicit permission from the previous publisher
    that added the old one.
  </simpara>
  <simpara>
    The author(s) and publisher(s) of the Document do not by this License give
    permission to use their names for publicity for or to assert or imply
    endorsement of any Modified Version.
  </simpara>
  <bridgehead id="section5" renderas="sect2">
    5. COMBINING DOCUMENTS
  </bridgehead>
  <simpara>
    You may combine the Document with other documents released under this
    License, under the terms defined in section 4 above for modified versions,
    provided that you include in the combination all of the Invariant Sections
    of all of the original documents, unmodified, and list them all as
    Invariant Sections of your combined work in its license notice, and that
    you preserve all their Warranty Disclaimers.
  </simpara>
  <simpara>
    The combined work need only contain one copy of this License, and multiple
    identical Invariant Sections may be replaced with a single copy. If there
    are multiple Invariant Sections with the same name but different contents,
    make the title of each such section unique by adding at the end of it, in
    parentheses, the name of the original author or publisher of that section
    if known, or else a unique number. Make the same adjustment to the section
    titles in the list of Invariant Sections in the license notice of the
    combined work.
  </simpara>
  <simpara>
    In the combination, you must combine any sections Entitled
    &#8220;History&#8221; in the various original documents, forming one
    section Entitled &#8220;History&#8221;; likewise combine any sections
    Entitled &#8220;Acknowledgements&#8221;, and any sections Entitled
    &#8220;Dedications&#8221;. You must delete all sections Entitled
    &#8220;Endorsements&#8221;.
  </simpara>
  <bridgehead id="section6" renderas="sect2">
    6. COLLECTIONS OF DOCUMENTS
  </bridgehead>
  <simpara>
    You may make a collection consisting of the Document and other documents
    released under this License, and replace the individual copies of this
    License in the various documents with a single copy that is included in
    the collection, provided that you follow the rules of this License for
    verbatim copying of each of the documents in all other respects.
  </simpara>
  <simpara>
    You may extract a single document from such a collection, and distribute
    it individually under this License, provided you insert a copy of this
    License into the extracted document, and follow this License in all other
    respects regarding verbatim copying of that document.
  </simpara>
  <bridgehead id="section7" renderas="sect2">
    7. AGGREGATION WITH INDEPENDENT WORKS
  </bridgehead>
  <simpara>
    A compilation of the Document or its derivatives with other separate and
    independent documents or works, in or on a volume of a storage or
    distribution medium, is called an &#8220;aggregate&#8221; if the copyright
    resulting from the compilation is not used to limit the legal rights of
    the compilation&#x2019;s users beyond what the individual works
    permit. When the Document is included in an aggregate, this License does
    not apply to the other works in the aggregate which are not themselves
    derivative works of the Document.
  </simpara>
  <simpara>
    If the Cover Text requirement of section 3 is applicable to these copies
    of the Document, then if the Document is less than one half of the entire
    aggregate, the Document&#x2019;s Cover Texts may be placed on covers that
    bracket the Document within the aggregate, or the electronic equivalent of
    covers if the Document is in electronic form. Otherwise they must appear
    on printed covers that bracket the whole aggregate.
  </simpara>
  <bridgehead id="section8" renderas="sect2">
    8. TRANSLATION
  </bridgehead>
  <simpara>
    Translation is considered a kind of modification, so you may distribute
    translations of the Document under the terms of section 4. Replacing
    Invariant Sections with translations requires special permission from
    their copyright holders, but you may include translations of some or all
    Invariant Sections in addition to the original versions of these Invariant
    Sections. You may include a translation of this License, and all the
    license notices in the Document, and any Warranty Disclaimers, provided
    that you also include the original English version of this License and the
    original versions of those notices and disclaimers. In case of a
    disagreement between the translation and the original version of this
    License or a notice or disclaimer, the original version will prevail.
  </simpara>
  <simpara>
    If a section in the Document is Entitled &#8220;Acknowledgements&#8221;,
    &#8220;Dedications&#8221;, or &#8220;History&#8221;, the requirement
    (section 4) to Preserve its Title (section 1) will typically require
    changing the actual title.
  </simpara>
  <bridgehead id="section9" renderas="sect2">
    9. TERMINATION
  </bridgehead>
  <simpara>
    You may not copy, modify, sublicense, or distribute the Document except as
    expressly provided under this License. Any attempt otherwise to copy,
    modify, sublicense, or distribute it is void, and will automatically
    terminate your rights under this License.
  </simpara>
  <simpara>
    However, if you cease all violation of this License, then your license
    from a particular copyright holder is reinstated (a) provisionally, unless
    and until the copyright holder explicitly and finally terminates your
    license, and (b) permanently, if the copyright holder fails to notify you
    of the violation by some reasonable means prior to 60 days after the
    cessation.
  </simpara>
  <simpara>
    Moreover, your license from a particular copyright holder is reinstated
    permanently if the copyright holder notifies you of the violation by some
    reasonable means, this is the first time you have received notice of
    violation of this License (for any work) from that copyright holder, and
    you cure the violation prior to 30 days after your receipt of the notice.
  </simpara>
  <simpara>
    Termination of your rights under this section does not terminate the
    licenses of parties who have received copies or rights from you under this
    License. If your rights have been terminated and not permanently
    reinstated, receipt of a copy of some or all of the same material does not
    give you any rights to use it.
  </simpara>
  <bridgehead id="section10" renderas="sect2">
    10. FUTURE REVISIONS OF THIS LICENSE
  </bridgehead>
  <simpara>
    The Free Software Foundation may publish new, revised versions of the GNU
    Free Documentation License from time to time. Such new versions will be
    similar in spirit to the present version, but may differ in detail to
    address new problems or concerns. See
    <ulink url="http://www.gnu.org/copyleft/">Copyleft</ulink>.
  </simpara>
  <simpara>
    Each version of the License is given a distinguishing version number. If
    the Document specifies that a particular numbered version of this License
    &#8220;or any later version&#8221; applies to it, you have the option of
    following the terms and conditions either of that specified version or of
    any later version that has been published (not as a draft) by the Free
    Software Foundation. If the Document does not specify a version number of
    this License, you may choose any version ever published (not as a draft)
    by the Free Software Foundation. If the Document specifies that a proxy
    can decide which future versions of this License can be used, that
    proxy&#x2019;s public statement of acceptance of a version permanently
    authorizes you to choose that version for the Document.
  </simpara>
  <bridgehead id="section11" renderas="sect2">
    11. RELICENSING
  </bridgehead>
  <simpara>
    &#8220;Massive Multiauthor Collaboration Site&#8221; (or &#8220;MMC
    Site&#8221;) means any World Wide Web server that publishes copyrightable
    works and also provides prominent facilities for anybody to edit those
    works. A public wiki that anybody can edit is an example of such a
    server. A &#8220;Massive Multiauthor Collaboration&#8221; (or
    &#8220;MMC&#8221;) contained in the site means any set of copyrightable
    works thus published on the MMC site.
  </simpara>
  <simpara>
    &#8220;CC-BY-SA&#8221; means the Creative Commons Attribution-Share Alike
    3.0 license published by Creative Commons Corporation, a not-for-profit
    corporation with a principal place of business in San Francisco,
    California, as well as future copyleft versions of that license published
    by that same organization.
  </simpara>
  <simpara>
    &#8220;Incorporate&#8221; means to publish or republish a Document, in
    whole or in part, as part of another Document.
  </simpara>
  <simpara>
    An MMC is &#8220;eligible for relicensing&#8221; if it is licensed under
    this License, and if all works that were first published under this
    License somewhere other than this MMC, and subsequently incorporated in
    whole or in part into the MMC, (1) had no cover texts or invariant
    sections, and (2) were thus incorporated prior to November 1, 2008.
  </simpara>
  <simpara>
    The operator of an MMC Site may republish an MMC contained in the site
    under CC-BY-SA on the same site at any time before August 1, 2009,
    provided the MMC is eligible for relicensing.
  </simpara>
  <bridgehead id="addendum" renderas="sect2">
    ADDENDUM: How to use this License for your documents
  </bridgehead>
  <simpara>
    To use this License in a document you have written, include a copy of the
    License in the document and put the following copyright and license
    notices just after the title page:
  </simpara>
  <screen>Copyright &#169; YEAR YOUR NAME

Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License, Version 1.3 or any later version
published by the Free Software Foundation; with no Invariant Sections, no
Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in
the section entitled &#8220;GNU Free Documentation License&#8221;.</screen>
  <simpara>
    If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
    replace the &#8220;with&#8230; Texts.&#8221; line with this:
  </simpara>
  <screen>with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts
being LIST, and with the Back-Cover Texts being LIST.</screen>
  <simpara>
    If you have Invariant Sections without Cover Texts, or some other
    combination of the three, merge those two alternatives to suit the
    situation.
  </simpara>
  <simpara>
    If your document contains nontrivial examples of program code, we
    recommend releasing these examples in parallel under your choice of free
    software license, such as the GNU General Public License, to permit their
    use in free software.
  </simpara>
</appendix>
</article>
<!--
Local Variables:
coding: ISO-8859-1
End:
 -->