-
Notifications
You must be signed in to change notification settings - Fork 64
/
index.html
81 lines (76 loc) · 3.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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,maximum-scale=1">
<title>Battleboat.js - A JavaScript AI that beats humans at battleship.</title>
<meta name="description" content="Battleboat.js: A JavaScript AI that beats humans at battleship.">
<meta name="keywords" content="Battleboat.js, battleship, AI, robot, JavaScript">
<meta name="google" content="notranslate">
<link rel="icon" type="image/png" href="img/favicon.png" />
<link rel="image_src" href="img/apple-touch-icon-144x144-precomposed.png" />
<link rel="apple-touch-icon" href="img/apple-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="img/apple-touch-icon-57x57-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72x72-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114x114-precomposed.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144x144-precomposed.png" />
<link rel="author" href="https://plus.google.com/+BillMei" />
<link rel="publisher" href="https://plus.google.com/+BillMei" />
<link href="css/styles.css" rel="stylesheet" media="all"/>
</head>
<body>
<div class="container">
<h1>Battleboat.js</h1>
<p class="tagline">A JavaScript AI that beats humans at battleship.</p>
<p>How to play</p>
<ol class="instructions">
<li id="step1">Select your ships from the left-hand side</li>
<li id="step2">Place your ships on your map</li>
<li id="step3">Click on the cells of the enemy's map<br>
to find and destroy all five enemy ships</li>
<li id="step4">The computer will fire on your ships<br>
immediately after you fire on its ships.</li>
</ol>
<div class="game-container">
<div id="restart-sidebar" class="hidden">
<h2>Try Again</h2>
<button id="restart-game">Restart Game</button>
</div><div id="roster-sidebar">
<h2>Place Your Ships</h2>
<ul class="fleet-roster">
<li id="patrolboat">Patrol Boat</li>
<li id="submarine">Submarine</li>
<li id="destroyer">Destroyer</li>
<li id="battleship">Battleship</li>
<li id="carrier">Aircraft Carrier</li>
</ul>
<button id="rotate-button" data-direction="0">Rotate Ship</button>
<button id="start-game" class="hidden">Start Game</button>
<button id="place-randomly" class="hidden">Place Randomly and Start</button>
</div><div id="stats-sidebar">
<h2>Stats</h2>
<p><strong>Games Won</strong></p>
<p id="stats-wins">0 of 0</p>
<p><strong>Accuracy</strong></p>
<p id="stats-accuracy">0%</p>
<button id="reset-stats">Reset Stats</button>
<button id="prob-heatmap" class="hidden">Show Probability Heatmap</button>
</div><div class="grid-container">
<h2>Your Fleet</h2>
<div class="grid human-player"><span class="no-js">Please enable JavaScript to play this game</span></div>
</div><div class="grid-container">
<h2>Enemy Fleet</h2>
<div class="grid computer-player"><span class="no-js">Please enable JavaScript to play this game</span></div>
</div>
</div>
<p>Created by <a href="https://billmei.net">Bill Mei</a>.</p>
<p>This project is open source <a href="https://github.com/billmei/battleboat">on GitHub</a>.</p>
</div>
<a href="https://github.com/billmei/battleboat"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
<script src="js/battleboat.js"></script>
<span class="prefetch" id="prefetch1"></span>
<span class="prefetch" id="prefetch2"></span>
<span class="prefetch" id="prefetch3"></span>
</body>
</html>