Skip to content

Added the reset button to reset the game index.html #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 29 additions & 27 deletions StonePaperScissors/index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,41 @@
<!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>
<h1>Rock Paper Scissors</h1>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rock Paper and Scissors Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Rock Paper Scissors Game</h1>
<div class="choices">
<div class="choice" id="rock">
<img src="./images/rock.png" />
</div>
<div class="choice" id="paper">
<img src="./images/paper.png" />
</div>
<div class="choice" id="scissors">
<img src="./images/scissors.png" />
</div>
<div class="choice" id="paper">
<img src="./images/paper.png" alt="paper image">
</div>
<div class="choice" id="rock">
<img src="./images/rock.png" alt="rock iamge">
</div>
<div class="choice" id="scissors">
<img src="./images/scissors.png" alt="scissors image">
</div>
</div>

<div class="score-board">
<div class="score">
<p id="user-score">0</p>
<p>You</p>
</div>
<div class="score">
<p id="comp-score">0</p>
<p>Comp</p>
</div>
<div class="score">
<p id="user-score">0</p>
<p>You</p>
</div>
<div class="score">
<p id="comp-score">0</p>
<p>Computer</p>
</div>
</div>

<div class="msg-container">
<p id="msg">Play your move</p>
<p id="msg">Play your move</p>
<button id="reset-btn">Reset Game</button>
</div>

<script src="app.js"></script>
</body>
</body>
</html>