-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·63 lines (54 loc) · 2.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,600" rel="stylesheet" type="text/css">
<link href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<title>Pig Game</title>
</head>
<body>
<div class="wrapper clearfix">
<div class="player-0-panel active">
<div class="player-name" id="name-0">Player 1</div>
<div class="player-score" id="score-0">0</div>
<div class="player-current-box">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-0">0</div>
</div>
</div>
<div class="player-1-panel">
<div class="player-name" id="name-1">Player 2</div>
<div class="player-score" id="score-1">0</div>
<div class="player-current-box">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-1">0</div>
</div>
</div>
<button class="btn-new" id="new-game"><i class="ion-ios-plus-outline"></i>New game</button>
<button class="btn-roll" id="roll-dice"><i class="ion-ios-loop"></i>Roll dice</button>
<button class="btn-hold" id="hold-dice"><i class="ion-ios-download-outline"></i>Hold</button>
<!-- Trigger/Open The Modal -->
<button class="btn-instructions" id="myBtn"><i class="icon ion-clipboard"></i>Rules</button>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<ul id="instructions-list">
<li>The game has 2 players, playing in rounds.</li>
<li>For each turn, a player rolls a dice as many times as they want. Each result will be get added to their ROUND score</li>
<li>If a 1 is rolled, the player loses their turn and their Round score. Then it's the next player's turn</li>
<li>If a player chooses to Hold, their current ROUND score gets added to their overall score. Then it's the next player's turn</li>
<li>The first player to reach 100 points wins. </li>
</ul>
</div>
</div>
<h1 align="center" id="winner-message"></h1>
<h2 align='center' id="lose-turn"></h2>
<img src="dice-5.png" id="dice" class="dice">
</div>
<script src="app.js"></script>
</body>
</html>