-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (41 loc) · 1.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tower of Hanoi</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<label for="gameSize">Discs: </label>
<input id="gameSize" type="number" min='3' max='11' value='3'>
<button id="newGame">New Game</button>
<h1>Tower of Hanoi</h1>
<p id="minMoves"></p>
<p id="moves"></p>
<div class="gameArea">
<div class="tower" id="tower3">
<div class="pegContainer">
<div class="towerBase"></div>
<div class="towerStem"></div>
</div>
<div class="discContainer" id="tower3Discs"></div>
</div>
<div class="tower" id="tower2">
<div class="pegContainer">
<div class="towerBase"></div>
<div class="towerStem"></div>
</div>
<div class="discContainer" id="tower2Discs"></div>
</div>
<div class="tower" id="tower1">
<div class="pegContainer">
<div class="towerBase"></div>
<div class="towerStem"></div>
</div>
<div class="discContainer" id="tower1Discs"></div>
</div>
</div>
<script src='jquery-2.2.0.min.js'></script>
<script src='main.js'></script>
</body>
</html>