-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (135 loc) · 3.67 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rock Paper Scissors game</title>
<link rel="stylesheet" href="style.css" />
</head>
<body style="background-color: #8cc461">
<div class="mainscore">
<div class="scoretext">
<p>Rock</p>
<p>Paper</p>
<p>Scissors</p>
</div>
<div class="bothscore">
<div class="playerscore">
<span>Your</span>
<br />
<span>Score</span>
<br />
<span
class="score"
style="
color: #252525;
text-align: center;
font-family: Roboto;
font-size: 68px;
font-style: normal;
font-weight: 700;
line-height: normal;
"
>0</span
>
</div>
<div class="computerscore">
<span>Computer</span>
<br />
<span>Score</span>
<br />
<span
class="compscore"
style="
color: #252525;
text-align: center;
font-family: Roboto;
font-size: 68px;
font-style: normal;
font-weight: 700;
line-height: normal;
"
>0</span
>
</div>
</div>
</div>
<div class="choices">
<div class="info">
<p class="userchose">YOU CHOOSE</p>
<p class="pcchose">PC CHOOSE</p>
</div>
</div>
<div class="triangle"></div>
<div class="options">
<div class="stone whitebg">
<div class="item">
<img src="./images/stone.png" alt="stoneimage" />
</div>
</div>
<div class="scissors whitebg">
<div class="item">
<img src="./images/scissor.png" alt="scissorimage" />
</div>
</div>
<div class="paper whitebg">
<div class="item">
<img src="./images/paper.png" alt="paperimage" />
</div>
</div>
<div class="stone computer">
<div class="item">
<img src="./images/stone.png" alt="stoneimage" />
</div>
</div>
<div class="scissors computer">
<div class="item">
<img src="./images/scissor.png" alt="scissorimage" />
</div>
</div>
<div class="paper computer">
<div class="item">
<img src="./images/paper.png" alt="paperimage" />
</div>
</div>
</div>
<div class="win-modal">
<h1 class="winner">YOU WIN</h1>
<button class="play">Play Again</button>
</div>
<div class="bottomright">
<div class="nextbutton">
<button class="next">Next</button>
</div>
<div class="rulebutton">
<button class="rule">Rule</button>
</div>
</div>
<div class="showmodal">
<div class="closeicon">
<span class="close">X</span>
</div>
<div class="inshowmodal">
<h1>Game Rules</h1>
<ul>
<li>
Rock beats scissors, scissors beat paper, and paper beats rock.
</li>
<li>
Agree ahead of time whether you’ll count off “rock, paper, scissors,
shoot” or just “rock, paper, scissors.”
</li>
<li>
Use rock, paper, scissors to settle minor decisions or simply play
to pass the time.
</li>
<li>
If both players lay down the same hand, each player lays down
another hand.
</li>
</ul>
</div>
</div>
</body>
<script src="main.js"></script>
</html>