-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (56 loc) · 2.08 KB
/
index.html
File metadata and controls
59 lines (56 loc) · 2.08 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="index.css">
<title>Rock Paper Scissors</title>
</head>
<body>
<!--Here is the Heading so to speak for the game-->
<h1>ROCK PAPER SCISSORS!!</h1>
<!--Here are the How to play instructions-->
<h3>How To Play:</h3>
<dd>Player: press R for Rock, press P for Paper, press S for scissors</dd>
<dd>Computer: randomly chooses rock, paper or scissors</dd>
<!-- Here are the rules of the game-->
<h3>Rules:</h3>
<dd>Rock beats Scissors</dd>
<dd>Scissors beats Paper</dd>
<dd>Paper beats Rock</dd>
<!-- Here is where the game starts-->
<h3>Game on!! </h3>
<!--Player is prompted to press appropriate keystroke to start game-->
<p>Press R, P, or S to start!</p>
<!--Here is where the computers choice will be displayed-->
<div class="choice_displays computer">
<dd>Computer chose:</dd>
<dd class="display" id="display_computers_choice"></dd>
</div>
<!--Here is where the players choice will be dislayed-->
<div class="choice_displays player">
<dd>You chose:</dd>
<dd class="display" id="display_players_choice"></dd>
</div>
<!--Here is where the announcement of the results if the player won lost or tied are displayed-->
<div class="choice_displays">
<dd>Results:</dd>
<dd class="display" id="results"></dd>
</div>
<!--Here is where the totals of wins losses and draws are kept and displayed-->
<section id="totals">
<h3>Totals:</h3>
<div id="resultsLog">
<ul>Wins:</ul>
<li class="display" id="win_total"></li>
<ul>Losses:</ul>
<li class="display" id="loss_total"></li>
<ul>Draws:</ul>
<li class="display" id="draw_total"></li>
</div>
</section>
<!--Here is the java script link-->
<script src="index.js"></script>
</body>
</html>