/Hangman

This friendly console based java application contains a simple implementation of the classic Hangman game in Java. Hangman is a word guessing game where the player must guess a secret word letter by letter within a certain number of attempts. If the player guesses the word correctly within the given attempts, they win; otherwise, they lose.

Primary LanguageJavaMIT LicenseMIT

Hangman Game

This friendly console based java application contains a simple implementation of the classic Hangman game in Java. Hangman is a word guessing game where the player must guess a secret word letter by letter within a certain number of attempts. If the player guesses the word correctly within the given attempts, they win; otherwise, they lose.

Author

Arda Baran

Description

This repository contains a Java implementation of the classic Hangman game. Hangman is a word guessing game where the player must guess a secret word letter by letter within a certain number of attempts. The game provides feedback after each guess, including the current score, correct guesses, wrong guesses, and remaining attempts. ASCII art is utilized for visual appeal.

Features

  • Random word selection for guessing
  • Single character input for guesses
  • Tracking of correct and wrong guesses
  • Score tracking and feedback
  • ASCII art representation
  • prints hangman -prints scoreboard of the player

Technologies And Data Structures Used

  • Java
  • Queue -ASCII ART -Array
    -Object Oriented Programming -awt -graphics

Usage

  1. Clone the repository to your local machine.
  2. Compile the Java files using javac.
  3. Run the Hangman game using java HangmanGame.
  4. Follow the prompts to play the game..

File Structure

  • src/: Contains the Java source code