Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 697 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 697 Bytes

Hangman Game

This is a simple Hangman game written in C. Players can choose from different categories and try to guess the word by entering letters.

Categories

  • Fruits
  • Animals
  • Countries
  • Objects

How to Run

Prerequisites

  • A C compiler (such as GCC)
  • A Windows environment (for windows.h)

Steps

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Compile the code:

    gcc -o hangman hangman.c
  3. Run the executable:

    ./hangman

Example

After running the executable, you will be prompted to choose a category and then start guessing letters to find the word.