-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (42 loc) · 2.09 KB
/
Copy pathindex.html
File metadata and controls
42 lines (42 loc) · 2.09 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
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chess Engine</title>
<link rel="stylesheet" href="./styles.css">
<script src="./find-moves.js"></script>
<script src="./minimax.js" defer></script>
<script src="./ui.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/md5.js"></script>
</head>
<body>
<div class="content-container">
<div class="chess-board-container">
<div class="chess-board"></div>
<div class="side-bar">
<div class="promotion-options-container"></div>
<div class="stats">
<div class="evaluation">Eval:</div>
<div class="move">Move:</div>
<div class="depth">Depth:</div>
<button class="btn btn-primary" onclick="moveNow()" id="move-now">AI move</button>
<button class="btn btn-primary" id="menuButton" onclick="toggleMenu()">FEN Menu</button>
<button class="btn btn-primary" onclick="undoMove()">Undo Move</button>
<!-- <input type="number" value="" placeholder="value of pos in cp" id="cp-book-move-value">
<button onclick="addBookValue()" id="add-book-move-value">Add Book Value</button>
<button onclick="copyNewBook()" id="copy-book-moves">Copy New Book</button> -->
</div>
</div>
</div>
</div>
<ul id="hiddenMenu">
<li><div class="close-btn-holder"><button class="btn-close" onclick="toggleMenu()"></button></div></li>
<li><input type="text" value="rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" id="fen-holder"></li>
<li><button class="btn btn-primary" id="menuButton" onclick="updateFen()">import FEN</button></li>
</ul>
</body>
</html>