-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (77 loc) · 4.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link type="text/css" rel="stylesheet" href="style.css">
<title>Pig Game</title>
</head>
<body>
<div class="container">
<div class="menu">
<div class="title">PIG GAME</div>
<button class="btn-new" id="btn-new-menu"><i class="material-icons">refresh</i>New game</button>
<button class="btn-rules"><i class="material-icons">help</i>Rules</button>
<button class="btn-color"><i class="material-icons">format_color_fill</i>Color</button>
<button class="btn-scores"><i class="material-icons">poll</i>Top scores</button>
<div class="footer">Developed by<br>Sara Ferreira</div>
</div>
<div class="main">
<div class="player-0-panel active">
<div class="container-player">
<div class="player-name" id="name-0">Player 1</div>
</div>
<div class="container-player">
<div class="player-score" id="score-0">0</div>
</div>
<div class="container-player">
<div class="player-current-box" id="player-current-box-0">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-0">0</div>
</div>
</div>
</div>
<div class="player-1-panel">
<div class="container-player">
<div class="player-name" id="name-1">Player 2</div>
</div>
<div class="container-player">
<div class="player-score" id="score-1">0</div>
</div>
<div class="container-player">
<div class="player-current-box" id="player-current-box-1">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-1">0</div>
</div>
</div>
</div>
<button class="btn-roll"><i class="material-icons">casino</i>Roll dice</button>
<button class="btn-hold"><i class="material-icons">backup</i>Hold</button>
<img src="img/dice-blue-1.png" alt="Dice" class="dice">
</div>
<div class="rules">
<div class="rules-title">GAME RULES:</div>
<div class="rules-content">
<ol>
<li>The game has 2 players, playing in rounds</li>
<li>In each turn, a player rolls a dice as many times as he whishes. Each result get added to his ROUND score</li>
<li>BUT, if the player rolls a 1, all his ROUND score gets lost. After that, it's the next player's turn</li>
<li>The player can choose to 'Hold', which means that his ROUND score gets added to his GLBAL score. After that, it's the next player's turn</li>
<li>The first player to reach 100 points on GLOBAL score wins the game</li>
</ol>
</div>
</div>
</div>
<div class="modal-login">
</div>
<div class="modal-content">
<span class="close-button">×</span>
<h1>Choose Player Names</h1>
<input type="text" class="add-name-1" placeholder="Player 1">
<input type="text" class="add-name-2" placeholder="Player 2">
<input type="checkbox" class="pc-flag">Play against PC<br>
<button class="btn-new" id="btn-new-modal"><i class="material-icons">refresh</i>New game</button>
</div>
<script src="app.js"></script>
</body>
</html>