-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (58 loc) · 2.46 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
<!DOCTYPE html>
<html>
<head>
<title>Guessing Game</title>
<meta name="description"
content="This game built on top of JavaScript. This game enables users to play on closing cards" />
<meta name="keywords" content="HTML, CSS, JavaScript, Guessing game,Swaroop">
<meta name="author" content="Swaroop Gupta Voleti">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="skin.css" />
<script src="https://kit.fontawesome.com/1ec50ae74a.js" crossorigin="anonymous"></script>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="apple-touch-icon" href="favicon.ico" />
</head>
<body>
<header>
<h1>Match mania</h1>
</header>
<section class="wrapper">
<div class="game-wrapper">
<div class="game-controls">
<span id="rating"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
<span id="moves">No Moves</span>
<span id="reset" onclick=shuffleItems()>Reset</span>
</div>
<ul id="container">
</ul>
<div id="sucess-card">
Congratulation you have successfully completed the Game in <span id="total-moves"></span> with
<span id='final-rating'><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span>
rating.
</div>
</div>
<div class="game-rules">
<h2>Game Rules</h2>
<p>The Guessing cards game randomly shuffles the cards on every page refresh. Player wins once all the cards have
been successfully matched.</p>
<ul>
<li><b>Congratulations screen:</b> Player wins the game, congratulaations screen will appear with all
the details.</li>
<li><b>Reset:</b> Reset will restart the game</li>
<li><b>Star Rating:</b> The star rating will change from 3 to 1 star based on the player's number of moves.
<ul>
<li>If the player completes the game in 15 moves then the player will get 3 stars.</li>
<li>If the player completes the game in between 16 to 30 moves then the player will get 2 stars.</li>
<li>If the player completes the game in morethan 30 moves then the player will get 1 star.</li>
</li>
</ul>
</ul>
</div>
</section>
<footer>
Design & Developed by <a href="https://voletiswaroop.github.io/" title="Swaroop Voleti portfolio"
target="_blank">Swaroop Voleti</a>
</footer>
<script src="script.js"></script>
</body>
</html>