-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfontdemo.html
144 lines (135 loc) · 6.74 KB
/
fontdemo.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Marshall Font Demo</title>
<link rel="stylesheet" href="css/fontstyle.css">
</head>
<body>
<header>
<h1>Marshall Font Demo</h1>
<h2>A CSS- and HTML5-friendly PGN replay system</h2>
<p>This demo uses custom fonts for the game display. The header tells
you which font set it's using</p>
</header>
<section id="main" role="main">
<section id="leipzig">
<header>
<h2>Leipzig</h2>
</header>
<article id="pehnecMartz_board" class="game_display leipzig"></article>
</section>
<section id="kingdom">
<header>
<h2>Kingdom</h2>
</header>
<article id="walker_lopez_board" class="game_display kingdom"></article>
</section>
</section>
<footer>
</footer>
<div class="pgn_source" id="pehnecMartz">
[Event "North Central Open"]
[Site "Milwaukee"]
[Date "1965.??.??"]
[Round "?"]
[White "T Pehnec"]
[Black "W Martz"]
[Result "0-1"]
1. d4 Nf6 2. c4 g6 3. Nc3 d5 4. cxd5 Nxd5 5. e4 Nxc3 6. bxc3 Bg7 7. Bc4 c5 8.
Ne2 Nc6 9. Be3 cxd4 10. cxd4 Qa5+ {The opening is completely analogous to Loft-Martz,
except that white has not moved f3 and black has not castled. This apparently small
difference is sufficient to afford a appreciable strengthening of white's play. With
11 Bd2! Qa3 12 Rb1 he can avoid the queen exchange and develop later threats of d5 and Bd2-b4.
Practice shows that black fails to achieve equality with this variation.}
11. Qd2 O-O 12. Rc1 {This rook maneuver loses a tempo compared with the immediate Rd1 as played
in Loft-Martz.} Rd8 13. Rc2 Bd7 14. O-O
Qxd2 15. Rxd2 Na5! {The arrival of the black knight at c4 will be much stronger here than in the
previous game, since white does not have the resource of Bf2 in reply.}
16. Bd3 Rac8 17. Rc1 Rxc1+ 18. Nxc1 Rc8 19. Rc2 Rxc2 20.
Bxc2 Nc4 21. Bg5 {White finds the best defense; he could not afford the breaking of his pawn structure
by ...Nxe3. The text seems to offer good chances to draw, but black has an important tactical
resource.} Bxd4 22. Bxe7 Ne3! {This interesting maneuver leads to a temporary tie-up of the white
pawns on the king's side. As a result black will be the first to mobilize his pawn majority.}
23. Bd3 Ng4 24. Bh4 Ne5 25. Bc2 Be6 26. Bb3
b5 27. Bxe6 fxe6 {Black allows a slight weakness in his pawn structure, since white lacks the means to
exploit it. In addition, black wishes to create an entry for his king among the white king-side pawns.
The latter will be decisive if white is forced to use his own king on the opposite wing.}
28. Kf1 Kf7 29. Ke2 a5 30. f4! {White relies upon his own pawn majority to secure counter-chances.
He also increases the mobility of his stranded bishop.} Nc6 31. Be1 a4 32. Kd3 Bc5 33.
e5 {Although the advance of the king-side pawns is the right defensive plan, the text is a serious
mistake. Black's reply gives him the necessary entry for his king, after which white will be unable
to defend both wings.} g5 34. g3 Kg6 35. Ke4 {He cannot allow Kf5 but now black threatens the other
side.} Bb4 36. Bf2 gxf4 37. gxf4 Bd2 38. Ne2 Ba5 39. Nd4 {The exchange of knights leaves white with the
weaker bishop, but there was no valid defense against the advance of black's pawns. White was by now
very short on time.}
Nxd4 40. Bxd4 b4 41. h3 b3 42. axb3 axb3 43. Bb2 Bd2! {White is in zugzwang! with 44 Kd3 Bf4 45 Kc4
Kf4 46 Kb3 Be5 47 Ba3 he could speculate upon being able to give up his bishop for the e-pawn and
still reach h1 with his king, thus making a theoretical draw. Black, however, should have no trouble
avoiding this pitfall.} 44. h4 h5 {White lost on time.} 0-1
</div>
<div class="pgn_source" id="walker_lopez">
[Event "UW Winter Open"]
[Site "Madison"]
[Date "2003.02.01"]
[Round "1"]
[White "Walker"]
[Black "Lopez"]
[Result "1-0"]
[ECO "B23"]
[WhiteElo "1697"]
[BlackElo "1038"]
[Annotator "Walker"]
[Source ""]
[Remark ""]
1.e4 g6 2.Nc3 Bg7 3.Bc4 {0.00} ( 3.d4 d6 4.f4 Nf6 5.Nf3
O-O 6.Bd3 Nc6 7.O-O e5 8.fxe5 dxe5 9.d5 Nd4 10.Nxe5 Nxe4 11.Bxe4
Bxe5 12.Bf4 Bxf4 13.Rxf4 Nf5 14.Bxf5 Bxf5 15.Qd4 {+0.24} )
( 3.h4 h5 {+0.24} ) c5 4.f4 Nc6 5.Nf3 e6 6.f5 Nge7 7.fxe6 fxe6
8.O-O {-0.27} {-0.38} ( 8.d3 d5 9.Bb3 b5 10.exd5 exd5 11.O-O
O-O {0.00} ) O-O 9.d3 h6 ( 9...d5 {Black's best counter in this line is always to strike out in the center with ...d5}
) 10.Be3?? ( 10.Qe1 d5 11.Bb3 {+0.18} Nd4
( 11...b6 12.Ne2 ) 12.Nxd4 Bxd4+ 13.Kh1 Kh7 14.exd5 Bxc3 15.bxc3
exd5 16.Bd2 Nf5 17.Qf2 b5 18.Qxc5 Bb7 19.Rae1 Rc8 20.Qxb5 Bc6
21.Qb4 d4 22.cxd4 Qh4 23.Kg1 a5 24.Qb6 Bxg2 25.Rxf5 Rxf5 26.Qa7+
Kh8 27.d5 Rff8 28.Re7 Rf1+ 29.Kxg2 Rf2+ {...1-0, Szonyi K.(2115) - Daya M., Cala Galdana 1996 Ch World (juniors) (under 18) (g)}
) ( 10.Bb3 b6 11.Qe1 g5 12.Ne2 Ba6 13.Ng3 Qe8 14.Rb1 Qg6 15.Bd2
Rf7 16.Qe2 Raf8 17.Bc3 g4 18.Nd2 Nd4 19.Qe3 Bb5 20.Rxf7 Rxf7
21.Ne2 Qg5 {0-1, Kosanovic G.(2437) - Jakab A.(2308), Budapest 2001 It (cat.7)}
) Nd4 {-0.08} ( 10...d5 11.exd5 exd5 {%02'with the idea' ...d4} {-1.86}
) 11.Qd2 {-1.26} Kh7 {-0.14} ( 11...d5 {-1.56} 12.exd5 exd5 13.Bb3
( 13.Nxd4 Rxf1+ {-0.90} ) Nxb3 14.axb3 d4 {And White loses.} )
12.Rae1 {-1.86} ( 12.Bb3 d5 13.exd5 exd5 14.Bxd4 {-0.38} ) a6 {0.00}
( 12...d5 13.exd5 exd5 14.Bxd4 cxd4 {-1.90} ) 13.Nd1 d5 14.Bb3 {-0.92}
( 14.Bxd4 cxd4 15.Bb3 ) Nxb3 15.axb3 {-1.10} dxe4 {-0.36}
( 15...d4 ) 16.dxe4 {-0.32} Qxd2 {+0.40} ( 16...b6 17.b4 cxb4
18.Qxd8 Rxd8 {-0.60} ) 17.Nxd2 b6 18.Nc4 Bb7 {??} {This loses badly.} {+1.18}
( 18...Rb8 19.Rxf8 Bxf8 20.Rf1 Kg8 {+0.58} 21.Bf4 Rb7 {White's advantage is minimal}
) 19.Nxb6 Rxf1+ 20.Rxf1 Rf8 {This just accelerates the loss.}
21.Rxf8 Bxf8 22.Nd7 Bg7 23.Nxc5 Bc8 24.c3 Be5 25.Nf2 h5 26.Nfd3
Bc7 27.Kf2 e5 28.Bg5 Nc6 29.b4 Kg7 30.Ne1 Bb6 31.Ke2 Bxc5 32.bxc5
Kf7 {?!} ( 32...a5 {This at least makes it harder to consolidate the Q-side.}
) 33.b4 Ke6 34.Nd3 Kd7 {?} {This enables White to tie up Black's entire army (almost)}
35.Bf6 Ke6 36.Bh8 ( 36.Bg7 {%02'better is'} ) Bd7 37.Bg7 Be8
38.h4 Bd7 39.Kd2 Be8 40.c4 Bd7 41.Kc3 {The K will support the advance of the pawns.}
Be8 42.b5 axb5 43.cxb5 1-0
</div>
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<!-- scripts concatenated and minified via ant build script-->
<script src="js/src/Game.js"></script>
<script src="js/src/Board.js"></script>
<script src="js/src/VBoard.js"></script>
<script src="js/src/MoveTree.js"></script>
<script src="js/src/NAG.js"></script>
<script src="js/src/Piece.js"></script>
<script src="js/src/Pgn.js"></script>
<!-- end scripts-->
<script>
var games = new Array();
games[0] = new MarshallPGN.Game("walker_lopez", {useFonts: true});
games[1] = new MarshallPGN.Game("pehnecMartz", {useFonts: true});
</script>
</body>
</html>