Hangman Svelte Themes

Hangman

A simple web-based hangman game. Written in Svelte

Hangman (Svelte)

A clean, modern, and reactive implementation of the classic Hangman word-guessing game built with Svelte.

image

🎮 Features

  • Reactive UI: Real-time updates as you guess letters, powered by Svelte's reactivity.
  • Visual Progress: Dynamic rendering of the "Hangman" figure as lives decrease.
  • Responsive Design: Playable on desktop and mobile browsers.
  • Instant Reset: Easily start a new game once you win or lose.

🚀 Getting Started

Prerequisites

Make sure you have Bun installed on your machine.

Installation

Clone the repository:

git clone https://github.com/RAPrograms/Hangman.git
cd Hangman

Install dependencies:

bun install

Start the development server:

npm run dev

The app will typically be available at http://localhost:5173.

🛠️ Built With

Svelte - Frontend framework for building the UI.

Vite - Next-generation frontend tooling for fast development.

SCSS - Styling pre-processer.

📖 How to Play

The game selects a random secret word.

Guess letters by typing or clicking the available alphabet.

If the letter is in the word, it will be revealed.

If the letter is not in the word, a part of the hangman will be drawn.

Win by revealing the whole word before the hangman is complete!

📄 License

This project is licensed under the GPL-2.0 License - see the LICENSE file for details.

👤 Author

RAPrograms

Top categories

Loading Svelte Themes