-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (104 loc) · 5.48 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
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>Chess with Voice</title>
<link rel="stylesheet"
href="https://unpkg.com/@chrisoakman/[email protected]/dist/chessboard-1.0.0.min.css"
integrity="sha384-q94+BZtLrkL1/ohfjR8c6L+A6qzNH9R2hBLwyoAfu3i/WCvQjzL2RQJ3uNHDISdU"
crossorigin="anonymous">
<link rel="stylesheet"
href="style.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="icon" type="image/png" href="img/chesspieces/wikipedia/bK.png">
<style>
body {background-color: rgb(146, 146, 146);}
</style>
</head>
<body>
<h2 style="text-align:left; font-family:Georgia,serif; color:white; position:relative; left:400px; top:200px;">Chess<br>With<br>Voice</h2>
<!-- <header>The chess part</header>
<p>This is the chess board after white plays e4 and black plays c5.</p>
<pre id="ascii-board"></pre>
<h2>The display part</h2>
<p>Here is a chess board in the starting position. You can only make legal chess moves. When you hover over a piece, the legal moves will be highlighted.</p>
-->
<div class="container">
<div class="col-lg-4"> </div>
<div class="col-lg-4">Prison</div>
<div class="col-lg-4"> </div>
</div>
<div class="container">
<div class="col-lg-4"> </div>
<div class="col-lg-4">
<img src="https://lh3.googleusercontent.com/u6auk-Ezp6wyY74rFOGNpTBjxwqrBfr8grBsuxD_xoxkTbubl0VSvLMKrxcrf025P8xE27rgUbotkhvOti-5Qwrubvi9N_mtfk1pA1_X1DnvQp8ix96QyLIOIFdqAEYJjyUFrJROMw=s225-p-k" width="100" height="50" alt="Prison">
</div>
<div class="col-lg-3">Timer</div>
<div class="col-lg-1">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown" style="position:relative; right:50px;">Settings
<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li role="presentation"><a role="menuitem" tabinex="-1" href="#">Blindfold Chess</a></li>
<li role="presentation"><a role="menuitem" tabinex="-1" href="#">Difficulty</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="col-lg-4" style="position:relative; left:240px; top:200px;">Key<br>A - Alpha<br>B - Bravo<br>C - Charlie<br>D - Delta<br>E - Echo<br>F - Foxtrot<br>
G - Golf<br>H - Hotel<br>
</div>
<div class="col-lg-8" id="myBoard">
</div>
<div class="col">
xx:xx min
</div>
<div style="height:100px;width:180px;border:1px solid #4e4e4e;font:16px Arial, Serif;overflow:auto;">
Example<br>
Scroll box<br>
1: e4 e5<br>
2: Nf4 Nc3<br>
3: d2 d3<br>
4: Bc1 Bf4<br>
</div>
<div class="col" style="position:relative; top:300px; font-family:Verdana, Geneva, Tahoma, sans-serif">
White's Move
</div>
</div>
<div class="container">
<div class="col-lg-4"> </div>
<div class="col-lg-4">Prison</div>
<div class="col-lg-3">Timer</div>
<div class="col-lg-1 text-right"> </div>
</div>
<div class="container">
<div class="col-lg-4"> </div>
<div class="col-lg-4">
<img src="https://lh3.googleusercontent.com/u6auk-Ezp6wyY74rFOGNpTBjxwqrBfr8grBsuxD_xoxkTbubl0VSvLMKrxcrf025P8xE27rgUbotkhvOti-5Qwrubvi9N_mtfk1pA1_X1DnvQp8ix96QyLIOIFdqAEYJjyUFrJROMw=s225-p-k" width="100" height="50" alt="Prison">
</div>
<div class="col-lg-4"></div>
</div>
<div class="row"></div>
<header>Instructions</header>
<p>Click the blue button in the lower right to activate Alan. Drag the button to reposition it.</p>
<p>Try saying something like "Move pawn to d4," "e4," or "Knight f3."Alan will respond with your move or provide feedback. You may use the phonetic alphabet (alpha, bravo, charlie, ...) for clarity.</p>
<p>Make sure your volume is on so you can hear Alan's replies. </p>
<p>After Alan replies, you can simply say the next command. If you need some time to think, say something like "wait" or "wait 10 seconds."</p>
<p>This website is made with <a href="https://github.com/jhlywa/chess.js">the chess.js library</a>, <a href="https://github.com/oakmac/chessboardjs">the chessboard.js library</a>, and <a href="https://alan.app/">Alan AI</a>. The source code is available on <a href="https://github.com/Team-Acsent/Team-Acsent.github.io">GitHub</a>.</p>
<div class="alan-btn"></div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/@chrisoakman/[email protected]/dist/chessboard-1.0.0.min.js"
integrity="sha384-8Vi8VHwn3vjQ9eUHUxex3JSN/NFqUg3QbPyX8kWyb93+8AC/pPWTzj+nHtbC5bxD"
crossorigin="anonymous"></script>
<script type="module" src="myChess.js"></script>
<script type="text/javascript" src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script type="module" src="myVoice.js"></script>
</body>
</html>