-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
145 lines (117 loc) · 5.63 KB
/
index.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
145
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-149681990-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-149681990-1');
</script>
<link rel="stylesheet" href="chess960.css">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
</head>
<body onload="randomGo();">
<div id="outermost">
<h1>Chess960: What The Fischer?!</h1>
<h2>A Chess 960 Starting Position Generator</h2>
<div id="board">
<div class="notation item"></div>
<div class="notation item">a</div>
<div class="notation item">b</div>
<div class="notation item">c</div>
<div class="notation item">d</div>
<div class="notation item">e</div>
<div class="notation item">f</div>
<div class="notation item">g</div>
<div class="notation item">h</div>
<div class="notation item"></div>
<break></break>
<div class="notation item">8</div>
<div id="a8" class="item piece white">a8</div>
<div id="b8" class="item piece black">b8</div>
<div id="c8" class="item piece white">c8</div>
<div id="d8" class="item piece black">d8</div>
<div id="e8" class="item piece white">e8</div>
<div id="f8" class="item piece black">f8</div>
<div id="g8" class="item piece white">g8</div>
<div id="h8" class="item piece black">h8</div>
<div class="notation item">8</div>
<break></break>
<p></p>
<div class="notation item">1</div>
<div id="a1" class="item piece black">a1</div>
<div id="b1" class="item piece white">b1</div>
<div id="c1" class="item piece black">c1</div>
<div id="d1" class="item piece white">d1</div>
<div id="e1" class="item piece black">e1</div>
<div id="f1" class="item piece white">f1</div>
<div id="g1" class="item piece black">g1</div>
<div id="h1" class="item piece white">h1</div>
<div class="notation item">1</div>
<break></break>
<div class="notation item"></div>
<div class="notation item">a</div>
<div class="notation item">b</div>
<div class="notation item">c</div>
<div class="notation item">d</div>
<div class="notation item">e</div>
<div class="notation item">f</div>
<div class="notation item">g</div>
<div class="notation item">h</div>
<div class="notation item"></div>
</div>
<span id="thisposline">
Showing Chess960 position # <span id="whichposfield"></span>
</span>
<form id="getpositionsform" onSubmit="return false;">
<input type="button" class="button" onclick="randomGo()" id="getrandom" value="Get A Random Chess 960 Position">
<div class="spaceydiv">
-- or --
</div>
<input type="button" class="button" onclick="errorCheck(event)" id="getspecific" value="Get Specific Chess 960 Position">
<input type="text" id="getspecificinput" onSubmit="if (event.keyCode == 13) { errorCheck(event) }" onkeypress="if (event.keyCode == 13) { errorCheck(event) }" onkeydown="if (event.keyCode == 13) { errorCheck(event) }" size=3 maxlength=3>
<br>
<span id="specificinstruct">Enter a number (*SPID) between 0 and 959 in the field above</span>
<br>
<span id="errorout" class="error"> </span>
</form>
<div id="whatis">
<div id="whatiscontent">
<p>
Upon first seeing the combination of pieces above, a person might be thinking <span class="italic bold">"What the Fischer is going on here?!"</span>, but these positions are indeed normal for Chess 960! <span class="italic reallysmalltext">(Unless the starting position randomly generated is SPID 518, as that is the Chess 960 starting position that matches tradtional chess!)</span>
<p>
<a href="https://en.wikipedia.org/wiki/Chess960">What is Chess 960 (AKA Fischer Random)?</a>
</p>
<p class="quoted">
"Chess960, also known as Fischer Random Chess, is a variant of chess invented and advocated by former world chess champion Bobby Fischer. It employs the same board and pieces as standard chess, but the starting position of the pieces on the players' home ranks is randomized, under certain constraints. The random setup renders the prospect of obtaining an advantage through the memorization of opening lines impracticable, compelling players to rely instead on their talent and creativity."
</p>
<br>
<span class="bold">About Chess960:</span>
<ul>
<li><a href="https://www.youtube.com/watch?v=mPfGVJW7ND0">(Video) Learn to Play Chess960 (Fischer Random)</a>
<li><a href="https://chess960.net/how-to-play/">Chess960.net: How To Play</a>
<li><a href="https://www.mark-weeks.com/cfaa/chess960/c960strt.htm">Mark Weeks Chess 960</a>
<li><a href="http://www.caissa.com/encyclopedia/chess960.php">Caissa's Web: Chess960</a>
</ul>
<br>
<span class="bold">Chess960 News:</span>
<ul>
<li><a href="https://www.chess.com/news/search?keyword=Chess960">Chess.com News: Topic Chess960</a>
<li><a href="https://www.chess.com/news/search?keyword=Fischer+Random">Chess.com News: Topic Fischer Random</a>
<li><a href="https://twitter.com/search?q=%23Chess960&src=recent_search_click&f=live">Twitter: #Chess960</a>
</ul>
<hr>
*<span class="bold">SPID</span> = Starting Position Identifier. Starts counting at 0 and ends at 959; the SPIDs are unique identifiers for all possible Chess 960 combinations.
<hr>
<span class="bold">Chess960: What The Fischer?!</span> Chess960 Staring Position Generator created by <a href="https://twitter.com/EricDorsey">Eric Dorsey</a>.
If you find it useful and are so compelled you can <a href="https://www.paypal.com/paypalme2/donatetoericdorsey">buy me a coffee</a>.
Source code <a href="https://github.com/ericdorsey/chess960">here</a>.
</div>
</div>
</div>
<script src="chess960.js"></script>
</body>
</html>