-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (54 loc) · 1.69 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
<!DOCTYPE html>
<!--
HTML for Greed Kata dice game.
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Greed Kata</title>
<link rel="stylesheet" href="style.css" />
<script src="main.js"></script>
</head>
<body>
<header>
<h1>Greed Kata</h1>
</header>
<main>
<section id="menu-view">
<article>
<h2>Set a Dice Roll:</h2>
<div id="dice">
<input id="die1" type="number" min="1" max="6" value="1">
<input id="die2" type="number" min="1" max="6" value="1">
<input id="die3" type="number" min="1" max="6" value="1">
<input id="die4" type="number" min="1" max="6" value="1">
<input id="die5" type="number" min="1" max="6" value="1">
</div>
<button id="bestButton">Get Best Score</button>
<p id="bestLabel">Best Score: 1200</p>
</article>
<section>
<header>
<h2>Rules</h2>
</header>
<p>
Greed Kata is a game where players roll 5 dice with the goal of getting the highest score.
Scoring is determined by the following rules:
</p>
<div id="rules">
<ul>
<li>A single one (100)</li>
<li>A single five (50)</li>
<li>Triple ones [1,1,1] (1000)</li>
<li>Triple twos [2,2,2] (200)</li>
<li>Triple threes [3,3,3] (300)</li>
<li>Triple fours [4,4,4] (400)</li>
<li>Triple fives [5,5,5] (500)</li>
<li>Triple sixes [6,6,6] (600)</li>
</ul>
</div>
</section>
</section>
</main>
</body>
</html>