Debian Codegraph @

texmf-dist/doc/latex/skak/debug_storegame.tex

raw
1
2
3 \documentclass[10pt]{article}
4
5 \usepackage[ps,mover]{skak}
6
7 \title{Ensure that storegame stores the full game}
8 \author{Torben Hoffmann }
9
10 \begin{document}
11
12 \parindent=0pt
13
14 \maketitle
15
16
17
18 \newgame
19 \mainline{1. d4 d5}
20
21 \boardasfen
22
23 \storegame{game1}
24 \restoregame{game1}
25
26 \boardasfen
27
28 \showboard
29
30 \mainline{2. Nc3 Nc6 3. Bg5 Bd7}
31
32 \showboard
33
34 \boardasfen
35
36 %\restoregame{skak.mainline.previous}
37
38 \boardasfen
39
40 \variation{3...f6}
41
42 \mainline{4.e4}
43
44 \showboard
45
46 \section{Next}
47
48 \newgame
49 \mainline{1.e4 e5 2. Nf3 Nc6 3.Bb5}
50 \storegame{game1}
51
52 \showboard
53 \boardasfen
54
55 \mainline{3...a6 4.Ba4 b5}
56
57 \showboard
58 \restoregame{game1}
59
60 \showboard
61 \boardasfen
62
63 Move number: \arabic{move}.
64
65
66
67
68 \mainline{3...Bd7}
69 \showboard
70
71 \section{tuggame}
72
73 \fenboard{1q3kr1/3rb2p/p3Q3/8/%
74 1p6/8/PPP3PP/4R2K w - - 0 26}
75
76 \showboard
77
78 \mainline{26. Qxd7}
79
80 \showboard
81
82 Not \variation{26. Rf1+ Kg7 27. Rf7+
83 Kh8}
84
85 %\variation{26. Rf1+}
86
87 \showboard
88
89 % \variationcurrent{26...Qa7}
90
91 % \showboard
92
93 and if \continuevariationcurrent{28. Qxd7 Rd8 29. Qg4 Qe5}
94 wins.
95
96 \showboard
97
98
99 \end{document}
100
101
102
103
104
105