GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mjsandagi/hangman: An object-oriented Java implementation of Hangman

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
.gitignore
.gitignore
 
 
BaseGameState.java
BaseGameState.java
 
 
Difficulty.java
Difficulty.java
 
 
Easy.java
Easy.java
 
 
FileWordManager.java
FileWordManager.java
 
 
Game.java
Game.java
 
 
GameState.java
GameState.java
 
 
Handler.java
Handler.java
 
 
Hangman Class and Sequence Diagrams.pdf
Hangman Class and Sequence Diagrams.pdf
 
 
Hangman.java
Hangman.java
 
 
Hard.java
Hard.java
 
 
Input.java
Input.java
 
 
Medium.java
Medium.java
 
 
Output.java
Output.java
 
 
README.md
README.md
 
 
WordManager.java
WordManager.java
 
 
words.txt
words.txt
 
 

Repository files navigation

Hangman

A Java-based implementation of Hangman with configurable difficulty levels.

UML Class Diagram

UML Class Diagram

Features

  • Difficulty Selection: Choose between Easy (10 attempts), Medium (8 attempts), or Hard (6 attempts).
  • Word Management: Words are loaded from a file and assigned to difficulty tiers.
  • Game State Tracking: Displays guessed letters, remaining attempts, and the partially revealed word.
  • Input/Output Handling: Robust validation for user inputs and clear feedback via the console.

Prerequisites

  • Java JDK 8 or higher (to compile and run the project).
  • A words.txt file in the project directory.

Installation & Usage

  1. Clone the repository or download the source files (e.g. git clone https://github.com/mjsandagi/hangman).
  2. Ensure words.txt is present in the root directory.
  3. Compile and run:
    javac Hangman.java
    java Hangman

Enjoy the game!

About

An object-oriented Java implementation of Hangman

github.com/mjsandagi/hangman

Topics

abstract-classesinterfaces-javajavaoop

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.