-
Notifications
You must be signed in to change notification settings - Fork 0
/
instruction.html
36 lines (29 loc) · 1.29 KB
/
instruction.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
<!DOCTYPE html>
<html>
<head>
<title>Ping Pong</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main">
<h1>RULES AND INSTRUCTIONS:-</h1>
<ul style="text-align: left;">
<li>There are 2 rods at the top and bottom of the screen.</li>
<li>Both rods are controlled with the same keys. In other words, they will move together.</li>
<li>When the game starts, an alert is shown about the highest score and the player who scored it. If there is no such record, it say's 'this is your first time'.
</li>
<li>If the score becomes highest, then it stores the name and max-score in local storage
</li>
<li>After every round, when one wins an alert will be displayed showing the winning player and his score.
</li>
<li>Every round start's when the 'Enter' key is pressed.
</li>
<li> rods will only move horizontally using the 'a' and 'd' keys</li>
<li>The losing rod will get the ball for the next match and the rods and ball will move to center.
</li>
<li>The score will be counted from the start of every match.
</li>
</ul>
</div>
</body>
</html>