-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (49 loc) · 1.95 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chess</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="intro">
<div class="box">
<h1 class="logo-group">
<span class="logo">Chess</span><span class="logo">GPT</span>
</h1>
<p class="text header">Can you beat ChatGPT-3.5 at chess?</p>
<ol class="text instructions">
<li>Choose your difficulty (only works when not in a game).</li>
<li>Click "Play" to start a new game and to be randomly assigned a side.</li>
<li>Standard rules of chess apply to you, but maybe not to ChatGPT.</li>
<li>Both sides win either by checkmate or if the opponent has an incorrect number of Kings.</li>
<li>ChatGPT's responses will be displayed at the top. ChatGPT loves telling people it won when it hasn't.</li>
<li>If ChatGPT's response is not a formatted move, you get to move again.</li>
</ol>
<button id="exitBtn">Good Luck!</button>
<p class="text credits">Made by Victor Chen, see <a href="https://github.com/vc64/ChessGPT" target="_blank">repo</a> for credits</p>
</div>
</div>
<div id="center">
<div id="container">
<div class="auxilary">
<div class="container-gpt">
<div id="gpt_logo" class = "gpt-part"></div>
<div id="gpt_text" class = "gpt-part"></div>
</div>
</div>
<div class = "game">
<div class = "brown neo cg-wrap" id="chessground"></div>
<div class="result" id="result_text"></div>
</div>
<div class="difficulty">
<p id="diff_label">Difficulty: Normal</p>
<div class="buttons">
<button class="diffBtn" id="hardBtn">Switch Difficulty</button>
<button id="resetBtn">Play</button>
</div>
</div>
</div>
</div>
</body>
</html>