-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (79 loc) · 2.82 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
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pig game</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap"
rel="stylesheet">
<link rel="shortcut icon" href="Images/logo.png" type="image/x-icon">
<link rel="stylesheet" href="CSS/all.min.css">
<link rel="stylesheet" href="CSS/style.css">
</head>
<!--
FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
-->
<body>
<span class="info">
<i class="fa-solid fa-circle-info"></i>
</span>
<div class="layout hidden"></div>
<div class="modal hidden">
<i class="fa-solid fa-x"></i>
<h1>How to play</h1>
<ol>
<li>The game begins with "Player 1" as the active player.</li>
<li>Tap the "ROLL DICE" button to begin rolling the dice. The number shown on the dice will be added to the
current score of the active player.</li>
<li>If the dice lands on "1," the current score is reset to 0 and the second player is given the opportunity
to play.</li>
<li>If you believe that rolling the dice again will result in a "1," tap the "Hold" button, and your current
score will be added to the total score.</li>
<li>The game is won by the first player to reach "100."</li>
<li>To begin a new game, click on the "NEW GAME" button.</li>
</ol>
</div>
<main>
<div class="player p1 focus">
<div>
<h1>player 1</h1>
<p class="score sc1">0</p>
</div>
<div class="current crnt1">
<p>current
</p>
<div class="crnt-score">
0
</div>
</div>
</div>
<div class="player p2">
<div>
<h1>player 2</h1>
<p class="score sc2">0</p>
</div>
<div class="current crnt2">
<p>current
</p>
<div class="crnt-score">
0
</div>
</div>
</div>
<div class="btns">
<button>🔄 New game</button>
<img src="" alt="dice" class="dice hidden">
<div class="together ">
<button>🎲 Roll dice</button>
<button>🤚 Hold</button>
</div>
</div>
</main>
<script src="JS/script.js"></script>
</body>
</html>