-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (77 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sika</title>
<link rel="stylesheet" href="style.css" />
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');
</style>
</head>
<body>
<nav>
<button id="back" class="btn hidden">< Back To Menu</button>
<button id="showRules">Rules</button>
</nav>
<main class="grid">
<section id="leftSide" class="left">
<div id="toWinDisplay">To Win:</div>
<ul id="playerList"></ul>
</section>
<section class="middle center">
<h1><i>'Sika'</i> with dice</h1>
<div id="gameContainer" class="none">
<div id="scoreQueue"></div>
<div id="splash"></div>
<div id="diceContainer" class="center float-container"></div>
<div class="slidein"></div>
<div id="gameButtons">
<button id="roll" class="btn">Roll The Dice</button>
<button id="hold" class="btn">Hold <span id="acc"></span></button>
</div>
</div>
<form id="options">
<div>
<h2>How many dice to play with?</h2>
<div id="diceSelect" class="center float-container small"></div>
</div>
<div class="grid-2">
<input type="number" min="100" id="toWin" name="toWin" placeholder="100" />
<label for="toWin"> To win</label>
</div>
<div class="grid-2">
<input type="text" id="playerInput" />
<button type="submit" id="playerAdd" class="btn">Add Player</button>
</div>
<div class="center"><button id="startGame" class="btn">Start Game</button></div>
</form>
</section>
<section id="rightSide" class="right">
<dialog id="rules" class="center vertical-center">
<form method="dialog">
<h1 class="center">Rules</h1>
<p>Minimum players 2</p>
<h2 class="center">Single die</h2>
<ul>
<li>The goal of the game is to accumulate 100 points (or more)</li>
<li>Player can roll the dice as long as they want, unless</li>
</ul>
<ol>
<li>player throws 1.</li>
<li>decides to hold.</li>
</ol>
<h2 class="center">Two dice</h2>
<ul>
<li>If both of the dice are the same, their sum is doubled</li>
<li>If you throw double 1's you'll earn 25 points</li>
<li>If you throw a single 1, your turn ends</li>
</ul>
<button>Close</button>
</form>
</dialog>
</section>
</main>
<script src="./script.js"></script>
</body>
</html>