-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchess.html
More file actions
67 lines (60 loc) · 2.99 KB
/
Copy pathchess.html
File metadata and controls
67 lines (60 loc) · 2.99 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="all.css">
<link rel="stylesheet" href="chess.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chess</title>
</head>
<body>
<div class="header">
<div class="header-left"><a href="index.html"><img style="height: auto; width: 35px" src="assets/tetrisCatIcon.png"/></a></div>
<div class="header-center">
<a href="index.html">Home</a>
<a href="help.html">Help</a>
<a href="store.html">Store</a>
</div>
<div class="header-right">
<a href="signup.html" class="signup-btn">Sign up</a>
<a href="login.html" class="login-btn" id="login-btn">Login</a>
<span id="username-display" style="display: none;"></span>
</div>
</div>
<div class="scroll-container">
<div class="scroll-progress-bar" id="scrollBar"></div>
</div>
<h1>Chess Mastery</h1>
<div class="box">
<h2>What is Chess?</h2>
<p>Chess is a strategic two-player game played on a checkered board. The goal is to checkmate your opponent's king, meaning the king cannot escape capture.</p>
</div>
<div class="box">
<h2>Chess Pieces and Movements</h2>
<ul>
<li><strong>King:</strong> Moves one square in any direction.</li>
<li><strong>Queen:</strong> Moves any number of squares in any direction.</li>
<li><strong>Rook:</strong> Moves any number of squares horizontally or vertically.</li>
<li><strong>Bishop:</strong> Moves any number of squares diagonally.</li>
<li><strong>Knight:</strong> Moves in an "L" shape: two squares vertically and one horizontally, or vice versa.</li>
<li><strong>Pawn:</strong> Moves forward one square (two on its first move), captures diagonally.</li>
</ul>
</div>
<div id="board-container">
<div id="board" class="board"></div>
</div>
<div class="overlay" id="Csoverlay" onclick="closePopup()"></div>
<div class="container" id="CspopupBox">
<img class="popup-tetriscat" style="rotate: 0deg; height: 150px; width: auto; left: 285px; top: -130px;" src="assets/tetrisCat4.GIF" alt=""/>
<div class="contact-box">
<div class="sos-box">SOS!!</div>
<button class="close-btn" onclick="closePopup()">×</button>
<p id="popup-text"></p>
</div>
</div>
<button id="startButton" class="button" onclick="startTutorial()">Start Tutorial</button>
<button id="resetButton" class="button" onclick="resetBoard()" style="display: none;">Reset Game</button>
<script src="script.js"></script>
<script src="chess.js"></script>
</body>
</html>