-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
82 lines (71 loc) · 5.07 KB
/
index.html
File metadata and controls
82 lines (71 loc) · 5.07 KB
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
<html>
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="opensource/css/chessboard-0.3.0.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<div class="jumbotron jumbotron-fluid", style="background-color:#006dcc">
<div class="container">
<h1><font color="white">Online Chess AI</font></h1>
</div>
</div>
<body>
<div class="container">
<div class="row">
<div class="col-lg-5">
<div id="board" style="width: 400px"></div><br>
<div class="alert alert-info alert-dismissible" id="whiteInCheckmate" style="width: 400px">
<strong></strong> Game Over. White is in Checkmate. Black wins!
</div>
<div class="alert alert-info alert-dismissible" id="blackInCheckmate" style="width: 400px">
<strong></strong> Game Over. Black is in Checkmate. White wins!
</div>
<div class="alert alert-info alert-dismissible" id="stalemate" style="width: 400px">
<strong></strong> Game Over. Stalemate!
</div>
<div class="alert alert-info alert-dismissible" id="drawnPosition" style="width: 400px">
<strong></strong> Game Over. Board in drawn position!
</div>
<div class="alert alert-info alert-dismissible" id="insufficientMaterial" style="width: 400px">
<strong></strong> Game Over. Insufficient Material to finish the match. Draw!
</div><br><br>
</div>
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7">
<div class="col-xs- 6 col-sm-6 col-md-6 col-lg-6">
<button type="button" class="btn btn-primary btn-block" id="secondAIBtn">Auto Play Game</button><br>
<button type="button" class="btn btn-primary btn-block" id="switchAIBtn">Switch AI color</button><br>
<button type="button" class="btn btn-primary btn-block" id="flipOrientationBtn">Flip Board Orientation</button><br>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
<button type="button" class="btn btn-danger btn-block" id="stopAutoBtn">Stop Auto Play</button><br>
<button type="button" class="btn btn-primary btn-block" id="undoMoveBtn">Undo Last Move</button><br>
<button type="button" class="btn btn-primary btn-block" id="resetBtn">Reset Board</button><br>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
</div>
Search Algorithm Depth (for Black):
<label class="radio-inline"><input type="radio" value="1" checked="checked" name="depthBlack">1</label>
<label class="radio-inline"><input type="radio" value="2" name="depthBlack">2</label>
<label class="radio-inline"><input type="radio" value="3" name="depthBlack">3</label>
<label class="radio-inline"><input type="radio" value="4" name="depthBlack">4</label> <br><br>
Search Algorithm Depth (for white):
<label class="radio-inline"><input type="radio" value="1" checked="checked" name="depthWhite">1</label>
<label class="radio-inline"><input type="radio" value="2" name="depthWhite">2</label>
<label class="radio-inline"><input type="radio" value="3" name="depthWhite">3</label>
<label class="radio-inline"><input type="radio" value="4" name="depthWhite">4</label> <br><br>
<span>Current FEN: <span id="FEN"></span></span><br><br>
<span>PGN: <span id="PGN"></span></span><br><br>
<span>Time taken for Black AI to find last move: <span id="blackMoveTime"></span></span><br>
<span>Time taken for White AI to find last move: <span id="whiteMoveTime"></span></span><br><br>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="opensource/js/chessboard-0.3.0.min.js"></script>
<script src="opensource/js/chess.min.js"></script>
<script src="js/chessAI.js"></script>
</body>
</html>