-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (68 loc) · 2.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Turm von Hanoi</title>
<link rel="stylesheet" href="./css/main.css" />
<script src="https://www.w3schools.com/lib/w3.js"></script>
</head>
<body>
<section class="intructions">
<h1>Turm von Hanoi</h1>
<h3>Spiel Regeln:</h3>
<p>
Ziel des Spieles: Alle Scheiben vom Turm ganz links sollen auf
den Turm ganz rechts bewegt werden. Bedingungen:
</p>
<ol>
<li>Sie können nur eine Scheibe pro Zug verschieben.</li>
<li>
Eine grössere Scheibe darf nie auf einer kleineren Scheibe
liegen.
</li>
</ol>
<p>Zum Verschieben einer Scheibe:</p>
<ul>
<li>
Klicken Sie zuerst auf den Turm, von dem die oberste Scheibe
entfernt werden soll.
</li>
<li>
Klicken Sie dann auf den Turm, auf den die Scheibe platziert
werden soll.
</li>
</ul>
</section>
<section class="canvas">
<div class="container-tower" id="container-tower">
<div class="tower tower-A" id="tower-A" data-index-number="0">
<div class="disc" data-index-number="1"></div>
</div>
<div
class="tower tower-B"
id="tower-B"
data-index-number="0"
></div>
<div
class="tower tower-C"
id="tower-C"
data-index-number="0"
></div>
</div>
<div class="ground">
<p>A</p>
<p>B</p>
<p>C</p>
</div>
</section>
<section class="game-controll" id="game-contoll">
<p>Anzahl der Scheiben:</p>
<div class="btn-container">
<button class="btn-plus" id="addDisc">+</button>
<button class="btn-minus" id="removeDisc">-</button>
</div>
</section>
<script src="./main.js" defer></script>
</body>
</html>