-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (35 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ludo Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="gameWrapper none">
<h1 class="gameHeading">Player One Turns</h1>
<span class="rollDice">0</span>
<div class="fathercardsdiv">
<div id="firstPlayerCard" class="playerCard">
<h3>Player One</h3>
<span class="playerHighestScore">Player One Highest Score: <b id="playerOneHighestScore">0</b></span>
<span class="playerScore">Player One Current Score: <b id="playerOneScore">0</b></span>
</div>
<div id="secondPlayerCard" class="playerCard">
<h3>Player Two</h3>
<span class="playerHighestScore">Player Two Highest Score: <b id="playerTwoHighestScore">0</b></span>
<span class="playerScore">Player Two Current Score: <b id="playerTwoScore">0</b></span>
</div>
</div>
<button onclick="rollTheBtn()" class="rollBtn">Click To Roll The Dice</button>
<button onclick="switchPlayer()" class="switchPlayerTurn">Switch Player Turn</button>
</div>
<div class="secondpage">
<h2 class="headingofsecondpage">Welcome to the Roll Dice Game</h2>
<button onclick="startGame()" class="btn-of-second-page">Start The Game</button>
<p class="paraofsecondpage">The Dice Game is a quick two-player JavaScript application where players aim to score 50 points for a victory. Roll the dice, accumulate points, and be the first to reach the target!</p>
</div>
<script src="app.js"></script>
</body>
</html>