-
Notifications
You must be signed in to change notification settings - Fork 10
/
play.html
123 lines (115 loc) · 6.45 KB
/
play.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="Chess, Chessboard, Javascript, Play Chess, Javascript Chess, three.js, chessboard.js, chessboard3.js">
<title>chessboard3.js</title>
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="css/site.css">
<link type="text/css" rel="stylesheet" href="css/chessboard.css">
<link type="text/css" rel="stylesheet" href="css/play.css">
<link type="text/css" rel="stylesheet" href="css/sweetalert.css">
<script type="text/javascript" src="js/sweetalert.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="js/three.js"></script>
<script type="text/javascript" src="js/OrbitControls.js"></script>
<script type="text/javascript" src="js/chessboard3.js"></script>
<!--Use chessboard.js as a fallback library -->
<script type="text/javascript" src="js/chessboard.js"></script>
<!-- game state, move validation, PGN, etc -->
<script type="text/javascript" src="js/chess.js"></script>
<script type="text/javascript" src="js/raphael-min.js"></script>
<script type="text/javascript" src="js/jquery.sonic-gauge.js"></script>
<script type="text/javascript" src="js/play.js"></script>
</head>
<body>
<header id="header">
<h1>chessboard3.js</h1>
<nav>
<ul>
<li><a href="index.html"><input type="button" class="blueButton" value="Home"></a></li>
<li><a href="docs.html"><input type="button" class="blueButton" value="Documentation"></a></li>
<li><a href="play.html"><input type="button" class="blueButton" value="Play"></a></li>
<li><a href="releases/0.1.3/chessboard3js-0.1.3.zip"><input type="button" class="blueButton" value="Download"></a></li>
</ul>
</nav>
</header>
<div class="banner" id="banner">
<p>Demo - Play using chessboard3.js against several [JavaScript] chess engines (stockfish, lozza, and p4wn).</p>
</div>
<article id="container">
<div id="board">
<h1 class="vertical-align">LOADING...</h1>
</div>
<div id="side">
<div class="buttonpanel">
<input type="button" class="yellowButton" id="startBtn" value="<<">
<input type="button" class="yellowButton" id="backBtn" value="<">
<input type="button" class="yellowButton" id="forwardBtn" value=">">
<input type="button" class="yellowButton" id="endBtn" value=">>">
</div>
<div class ="buttonpanel">
<input type="button" class="yellowButton" id="hintBtn" value="HINT">
<input type="button" class="yellowButton" id="flipBtn" value="FLIP">
<input type="button" class="yellowButton" id="dimensionBtn" value="2D">
<input type="button" class="yellowButton" id="resetBtn" value="RESET">
</div>
<div id="status"></div>
<div id="gaugebox">
<div id="optionsBox">
<label for="piecesMenu">CHESS SET:</label>
<select id="piecesMenu">
<option value="classic" selected>Classic</option>
<option value="iconic">Iconic</option>
<option value="bauhaus">Bauhaus</option>
<option value="mueller">Mueller</option>
<option value="minions">Minions</option>
</select>
<br>
<label for="engineMenu">CHESS ENGINE:</label>
<select id="engineMenu">
<option value="js/p4wn.js">p4wn</option>
<option value="js/lozza.js">Lozza</option>
<option value="js/stockfish.js" selected>stockfish</option>
</select>
<br>
<label for="moveTime">MOVE TIME (seconds):</label>
<select id="moveTime">
<option value="100">0.1</option>
<option value="200">0.2</option>
<option value="500">0.5</option>
<option value="1000" selected>1</option>
<option value="2000">2</option>
<option value="5000">5</option>
<option value="10000">10</option>
<option value="20000">20</option>
</select>
<br>
<label for="promotion">PROMOTE PAWNS TO:</label>
<select id="promotion">
<option value="q">queens</option>
<option value="n">knights</option>
<option value="r">rooks</option>
<option value="b">bishops</option>
</select>
</div>
<div id="gauge"></div>
</div>
<div id="pgnBox">
<button class="littleButton" id="setPGN">SET PGN</button>
<div id="pgn"></div>
</div>
<div id="fenBox">
<button class="littleButton" id="setFEN">SET FEN</button>
<span id="fen"></span>
</div>
</div>
</article>
<footer id="footer">
<p>Copyright 2016 Jason Tiscione; chessboard3.js is released under the MIT license. The repository for this project is on <a href="https://github.com/jtiscione/chessboard3js">GitHub.</a></p>
<p>This example uses <a href="https://github.com/jhlywa/chess.js/">chess.js</a> for move validation.</p>
<p>Please send questions, comments, criticisms to <i>tiscione@gmail.com.</i></p>
</footer>
</body>
</html>