-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
171 lines (155 loc) · 8.93 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<html prefix="og: https://ogp.me/ns#">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width" />
<title>Chess JS: A JavaScript Chess AI</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords"
content="Chess Js, Chess Js, Chessjs, Ashish Papanai, ChessJS, ChessJs, Chess AI, Chess Tutorial">
<meta name="author" content="Ashish Papanai">
<meta name="description"
content="Play live chess with an intellignet computer for free and analyse your exisitng chess game positions with FEN Notations. Solve interesting chess puzzles and know the best possible move. No adwares No Bloatwares. Learn Chess for free at your convenience. ">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
crossorigin="anonymous" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=PT+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="styles.css" rel="stylesheet" type="text/css">
<link rel="icon" href="images/favicon.ico" type="image/ico" sizes="16x16">
<!-- <link rel="stylesheet" media="(max-width:900px)" type="text/css" href="secondary.css"> -->
<!-- <link rel="stylesheet" media="(max-width:680px)" type="text/css" href="tertiary.css"> -->
<meta property="og:image"
content="https://images.unsplash.com/photo-1567874790230-3acbb5149829?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=750&q=80" />
<script type="text/javascript">
if (!window.console) console = {
log: function () { }
};
</script>
</head>
<body id="changebg">
<nav class="navbar navbar-expand-lg navbar-dark shadow ">
<div class="container">
<a class="navbar-brand" href="index.html"><img src="images/favicon.ico" width="30" height="30">Chess JS</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive"
aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="rules.html">Rules</a>
</li>
<li class="nav-item">
<a class="nav-link" target="blank" href="https://github.com/ashishpapanai/chessJS">Code</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="main">
<div id="simple-modal" class="modal">
<div class="modal-content">
<div class="closeBtn-div">
<i class="fa fa-times closeBtn"></i>
</div>
<div class="modal-text">
<p>This web site is best viewed at screen resolution of 1280 x 960 pixels or higher. Mobile version
of this website doen't support FEN Puzzle analysis. <br> <br> Don't let your device hamper your
experience. </p>
</div>
<div class="modal-footer">
<button class="understand-button">I Understand!</button>
</div>
</div>
</div>
<div class="top-div">
<h1>Chess JS: A JavaScript Chess AI</h1>
<div id="fenInDiv">
<div class="fen-form-label-div">
<span for="fenIn" id="fen-label">FEN: </span>
<button class="wrapper-button"
title="Forsyth–Edwards Notation (FEN) is a standard notation for describing a particular board position of a chess game. The purpose of FEN is to provide all the necessary information to restart a game from a particular position. If you're not sure about what you're doing, keep it empty"><i
class="fa fa-question-circle question-mark" aria-hidden="true"></i></button>
</div>
<div class="fen-form-input-div">
<input type="text" id="fenIn" name="fenIn" />
<button type="button" id="SetFen">Set Position</button>
</div>
</div>
</div>
<div class="container-div">
<div id="Board">
</div>
<div id="EngineOutput">
<div id="board-color-options">
<h4 class="board-color-para">Board Colors: </h4>
<div class="board-color-1"></div>
<div class="board-color-2"></div>
<div class="board-color-3"></div>
</div>
<span class="thinking-time-text">Thinking Time: </span>
<select id="ThinkTimeChoice">
<option value="1">1s</option>
<option value="2">2s</option>
<option value="4">4s</option>
<option value="6">6s</option>
<option value="8">8s</option>
<option value="10">10s</option>
</select>
<div id="engine-ouput-spans" >
<span class="output-spans" id="BestOut">Best Move:</span><br />
<span class="output-spans" id="DepthOut">Depth:</span><br />
<span class="output-spans" id="ScoreOut">Score:</span><br />
<span class="output-spans" id="NodesOut">Nodes:</span><br />
<span class="output-spans" id="OrderingOut">Ordering:</span><br />
<span class="output-spans" id="TimeOut">Time:</span>
</div>
<div class="button-container-3">
<button type="button" class="button-tertiary" id="ResignButton">Resign </button><br />
</div>
<div class="button-container-1">
<button type="button" class="button-primary" id="SearchButton">Move Now</button><br />
<button type="button" class="button-primary" id="NewGameButton">New Game</button><br />
</div>
<div class="button-container-2">
<button type="button" class="button-secondary" id="FlipButton">Flip Board</button><br /><br />
<button type="button" class="button-secondary" id="TakeButton">Take Back</button><br /><br />
</div>
<span id="GameStatus"></span>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="
crossorigin="anonymous"></script>
<script src="js/defs.js" type="text/javascript"></script>
<script src="js/io.js" type="text/javascript"></script>
<script src="js/board.js" type="text/javascript"></script>
<script src="js/movegen.js" type="text/javascript"></script>
<script src="js/makemove.js" type="text/javascript"></script>
<script src="js/evaluate.js" type="text/javascript"></script>
<script src="js/pvtable.js" type="text/javascript"></script>
<script src="js/search.js" type="text/javascript"></script>
<script src="js/perft.js" type="text/javascript"></script>
<script src="js/gui.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<script src="./js/modal.js"></script>
</body>
</html>