-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (53 loc) · 2.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Architects+Daughter&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css">
<title>Let's Connect 4</title>
<meta name="description" content="Play the best Connect 4 game on internet">
</head>
<body>
<div class="container">
<span class="heading">Play Connect 4</span>
<div class="player-section" style="display: grid; margin: auto;">
<div class="currentPlayer">Current Player :<span class="player"></span>
<div class="currentColor"></div>
</div>
</div>
<div class="board"></div>
<div class="restart">
<button class="playAgain">Play Again</button>
</div>
<img src="img/congratulations.gif" class="angrybird">
<img src="img/congratulations.gif" class="angrybird2">
<!-- Rules Section -->
<div class="rules-section">
<h2>Rules of Connect 4</h2>
<ul>
<li>1. Connect 4 is a two-player strategy game played on a vertical grid of 7 columns and 6 rows.</li>
<li>2. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of
four of one's own discs.</li>
<li>3. Players take turns dropping colored discs from the top into a column. The disc falls down to the
lowest unoccupied row in that column.</li>
<li>4. The game ends when one player achieves a line of four discs, or when the board is full and no
more
moves can be made.</li>
<li>5. If the board is full and no player has achieved a line of four discs, the game is a draw.</li>
</ul>
</div>
<!-- End of Rules Section -->
<div class="border-style"></div>
<footer>
<div class="copyright">
© <span id="currentYear"></span> Pancham Sardar. All rights reserved. | Follow me on <a href="https://www.linkedin.com/in/pancham-sardar-6a466227b" target="_blank">LinkedIn</a>
</div>
</footer>
<script>
document.getElementById("currentYear").textContent = new Date().getFullYear();
</script>
</div>
<script src="script.js"></script>
</body>
</html>