-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (50 loc) · 1.92 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
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="main-container">
<div id="rules-container">
<h2>Mind Reader</h3>
<div>
<p class="rules-title">Instructions</p>
<p class="desktop">Press the left and right arrow keys on your keyboard and an AI will try to guess which key you are going to press next.</p>
<p class="mobile">Tap the left and right side of our screen and an AI will try to guess which side you are going to tap next.</p>
<p class="rules-body">The AI guesses based on patterns it perceives in your behaviour. Make your moves as random as possible to stump it.</p>
<p class="rules-body">Click <a href="https://github.com/greg-rychlewski/mind-reader" target="_blank">here</a> for the github repository to this game</p>
</div>
</div>
<div id="player-container">
<div id="computer" class="player-group">
<div class="sphere">
<div id="computer-fill" class="fill"></div>
<div class="cover"></div>
</div>
<div id="computer-shadow" class="shadow"></div>
<p class="score-title">AI Score</p>
<p id="computer-score">0</p>
</div>
<div id="human" class="player-group">
<div class="sphere">
<div id="human-fill" class="fill"></div>
<div class="cover"></div>
</div>
<div id="human-shadow" class="shadow"></div>
<p class="score-title">Your Score</p>
<p id="human-score">0</p>
</div>
</div>
<div id="prediction-container" ontouchstart="">
<span id="button-label">Show AI's Prediction</span>
<span id="next-prediction"></span>
</div>
<div id="gameover-container">
<h2 id="winner"></h2>
<p id="new-game">Play Again</p>
</div>
</div>
<script type="text/javascript" src="ai.js"></script>
<script type="text/javascript" src="application.js"></script>
</body>
</html>