-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (32 loc) · 1.11 KB
/
index.html
File metadata and controls
32 lines (32 loc) · 1.11 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
<!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</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Rock, Paper, Scissors</h1>
<div class="player-info">
<label for="playerName">Enter your name:</label>
<input type="text" id="playerName" placeholder="Your Name">
<button id="startGame">Start Game</button>
</div>
<div class="game-area hidden">
<h2>Welcome, <span id="playerDisplay"></span>!</h2>
<div class="choices">
<button class="choice" data-choice="rock">✊ Rock</button>
<button class="choice" data-choice="paper">✋ Paper</button>
<button class="choice" data-choice="scissors">✌️ Scissors</button>
</div>
<div class="results">
<p><strong>Computer chose:</strong> <span id="computerChoice">?</span></p>
<p><strong>Result:</strong> <span id="gameResult">Make your move!</span></p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>