-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (107 loc) · 4.7 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Jaipur</title>
<link rel="icon" type="image/png" href="images/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,600,800&display=swap"
rel="stylesheet">
<script src="https://kit.fontawesome.com/067e9870dd.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div id="home-page">
<h1>Let's play <span>jaipur</span></h1>
<button id="start-btn">Start</button>
</div>
<i id="help" class="far fa-question-circle"></i>
<div id="how-to" class="first-showed">
<span id="cross">×</span>
<p class="heading">How to Play</p>
<p class="text">Each turn you can:</p>
<ol>
<li>Take a single goods card from the market</li>
<li>Exchange at least two cards at the market</li>
<li>Sell as many cards as you want of one type of good</li>
</ol>
<p class="text" id="luck">Good luck! 😄</p>
</div>
<div id="final-msg">
<div id="win-msg">You win! <span>😸</span></div>
<div id="lose-msg">You lose! <span>😿</span> </div>
<div id="draw-msg">Draw! <span>🙀</span> </div>
</div>
<div class="table">
<div class="scoreboard table-header">
<p>Tokens</p>
<p>Your Score</p>
<p>Machine's Score</p>
</div>
<div class="scoreboard table-row" id="diamonds-row">
<p><img src="images/tokensScore/diamond-tokenwn.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="gold-row">
<p><img src="images/tokensScore/gold-tokenwn.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="silver-row">
<p><img src="images/tokensScore/silver-tokenwn.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="cloth-row">
<p><img src="images/tokensScore/cloth-tokenwn.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="spice-row">
<p><img src="images/tokensScore/spice-tokenwn.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="leather-row">
<p><img src="images/tokensScore/leather-table.png" alt=""></p>
</div>
<div class="scoreboard table-row" id="bonus-row">
<p><img src="images/tokensScore/token-bonus.png" alt=""></p>
</div>
<div class="scoreboard total-row" id="total">
<p>Total</p>
</div>
</div>
<div id="game-board" class="game-stopped">
<div id="token-container">
<div id="threeCards" class="tokens bonus"></div>
<div id="fourCards" class="tokens bonus"></div>
<div id="fiveCards" class="tokens bonus"></div>
<div id="diamonds" class="tokens"></div>
<div id="gold" class="tokens"></div>
<div id="silver" class="tokens"></div>
<div id="cloth" class="tokens"></div>
<div id="spice" class="tokens"></div>
<div id="leather" class="tokens"></div>
</div>
<div class="cards">
<div id="machine">
<div id="machine-hand"></div>
<div id="machine-tokens" class="tokens"></div>
</div>
<div id="market"></div>
<div id="player-btns">
<button id="take-btn">Take</button>
<button id="sell-btn">Sell</button>
<button id="confirm-btn">Ok!</button>
</div>
<div id="player" class="active-player">
<div id="player-hand"></div>
<div id="player-tokens" class="tokens"></div>
</div>
</div>
<div class="card-piles">
<div id="deck" class="pile"></div>
<div id="discard-pile" class="pile"></div>
</div>
</div>
<script src="js/gameElements.js"></script>
<script src="js/player.js"></script>
<script src="js/user.js"></script>
<script src="js/machine.js"></script>
<script src="js/board.js"></script>
<script src="js/game.js"></script>
</body>
</html>