- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRockPaperScissors.html
More file actions
Latest commit
52 lines (42 loc) · 1.46 KB
/
Copy pathRockPaperScissors.html
File metadata and controls
52 lines (42 loc) · 1.46 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
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="UTF-8">
<metaname="viewport"
content="width=device-width,
initial-scale=1.0">
<linkrel="stylesheet" href="styles.css">
<title>Rock Paper Scissor</title>
</head>
<body>
<sectionclass="game">
<!--Title -->
<divclass="title">Rock Paper Scissor</div>
<!--Display Score of player and computer -->
<divclass="score">
<divclass="playerScore">
<h2>Player</h2>
<pclass="p-count count">0</p>
</div>
<divclass="computerScore">
<h2>Computer</h2>
<pclass="c-count count">0</p>
</div>
</div>
<divclass="move">Choose your move</div>
<!--Number of moves left before game ends -->
<divclass="movesleft">Moves Left: 10 </div>
<!--Options available to player to play game -->
<divclass="options">
<buttonclass="rock">Rock</button>
<buttonclass="paper">Paper</button>
<buttonclass="scissor">Scissors</button>
</div>
<!--Final result of game -->
<divclass="result"></div>
<!--Reload the game -->
<buttonclass="reload"></button>
</section>
<scriptsrc="app.js"></script>
</body>
</html>