Skip to content

Commit

Permalink
Add HangMan Game (#543)
Browse files Browse the repository at this point in the history
Fixed Hangman Game to the Website , Add SWOC labels to this PR
@dhairyagothi

Screenrecording :



https://github.com/user-attachments/assets/6ceebe3a-56d7-45bf-bda8-f94c045ffcc9
  • Loading branch information
dhairyagothi authored Jan 16, 2025
2 parents 821ae44 + f65b566 commit 53eeac5
Show file tree
Hide file tree
Showing 13 changed files with 737 additions and 68 deletions.
123 changes: 55 additions & 68 deletions index.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions public/HangmanGame/images/hangman-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions public/HangmanGame/images/hangman-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/HangmanGame/images/hangman-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions public/HangmanGame/images/hangman-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions public/HangmanGame/images/hangman-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/HangmanGame/images/hangman-5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions public/HangmanGame/images/hangman-6.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/HangmanGame/images/lost.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/HangmanGame/images/victory.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions public/HangmanGame/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hangman Game</title>
<link rel="stylesheet" href="style.css">
<script src="scripts/word-list.js" defer></script>
<script src="script.js" defer></script>
</head>
<body>
<h1>Hangman Game</h1>
<div class="game-modal">
<div class="content">
<img src="#" alt="Game Over Animation">
<h4>Game Over!</h4>
<p>The correct word was: <b>rainbow</b></p>
<button class="play-again">Play Again</button>
</div>
</div>
<div class="container">
<div class="hangman-box">
<img src="#" draggable="false" alt="Hangman Image">
<h1>Hangman Game</h1>
</div>
<div class="game-box">
<ul class="word-display"></ul>
<h4 class="hint-text">Hint: <b></b></h4>
<h4 class="guesses-text">Incorrect guesses: <b></b></h4>
<div class="keyboard"></div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit 53eeac5

Please sign in to comment.