-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRock-Paper-Scissors.html
More file actions
80 lines (70 loc) · 1.95 KB
/
Rock-Paper-Scissors.html
File metadata and controls
80 lines (70 loc) · 1.95 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
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
background-color: lightblue;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
margin: 0px;
display: flex;
flex-direction: column;
align-items: center;
}
h1{
font-size: 50px;
color: rgb(89, 28, 4);
}
button{
padding: 20px;
font-size: 60px;
border-radius: 50%;
background-color: rgb(18, 91, 116);
transition: background-color 0.5s ease;
border: 2px solid rgb(165, 58, 165);
}
button:hover{
background-color: rgb(0, 191, 255);
}
.choices{
margin-bottom: 30px;
}
#playerdisplay,#Computerdisplay{
font-size: 20px;
}
#resultdisplay{
font-size: 5rem;
}
.scoredisplay{
font-size: 30px;
}
.greentext,#playerscoreDisplay {
color: green;
}
.redtext, #ComputerscoreDisplay{
color: red;
}
</style>
</head>
<body>
<h1>Rock-Paper-Scissors</h1>
<div class="choices">
<button onclick="Playgame('rock')">👊</button>
<button onclick="Playgame('paper')">✋</button>
<button onclick="Playgame('scissors')">✌️</button>
</div>
<div id="playerdisplay">PLAYER:</div>
<div id="Computerdisplay">COMPUTER:</div>
<div id="resultdisplay">IT'S TIE</div>
<div class="scoredisplay">Palyer Score:
<span id="playerscoreDisplay">0</span>
</div>
<div class="scoredisplay">Computer Score:
<span id="ComputerscoreDisplay">0</span>
</div>
<script src="Rock-Paper-Scissors.js"></script>
</body>
</html>