-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathindex.html
88 lines (78 loc) · 3.18 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
85
86
87
88
<!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" />
<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">43</div>
<div class="player-current-box">
<div class="player-current-label">Current</div>
<div class="player-current-score" id="current-0">11</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">72</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">
🔄 New game
</button>
<button class="btn-roll">🎲 Roll dice</button>
<button class="btn-hold">📥 Hold
</button>
<img src="https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/e748ba19-04fb-4767-9b39-dd90dfcb4fb0" alt="Dice" class="dice1" />
<img src="https://github.com/GameSphere-MultiPlayer/GameSphere/assets/56786344/e748ba19-04fb-4767-9b39-dd90dfcb4fb0" alt="Dice" class="dice2" />
</div>
<button id="modal-btn" class="button1">Instructions</button>
<div id="my-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>Game Instructions</h2>
</div>
<div class="modal-body">
<ul class="list-group">
<li class="list-group-item">
The game has 2 players, playing in rounds.
</li>
<li class="list-group-item">
In each turn, a player rolls two dice as many times as he whishes.
Each result get added to his ROUND score.
</li>
<li class="list-group-item">
BUT, if the player rolls a 1 on any of the dice, all his ROUND
score gets lost. After that, it's the next player's turn.
</li>
<li class="list-group-item">
The player can choose to 'Hold', which means that his ROUND score
gets added to his GLOBAL score. After that, it's the next player's
turn.
</li>
<li class="list-group-item">
A player looses his ENTIRE score when he rolls two 6 in a row on
any of the dice. After that, it's the next player's turn.
</li>
<li class="list-group-item">
The first player to reach Winner score entered by user on GLOBAL
score wins the game.
</li>
</ul>
</div>
</div>
</div>
<script src="main.js"></script>
</body>
</html>