lachlanstephen / hangman-c

A fun little game of hangman written up in C. For those from 42, it is norm compliant.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hangman in C

Decided to learn about receiving input from the standard input, and thought Hangman would be a great way of doing so.

Compiling the program

Run the following commands:

make

./play-hangman

Gameplay

How to play my program:

  1. Player 1 types a lowercase alphabetical word as the secret, and hits 'enter'.
  2. Player 2 then takes turns, either guessing one letter at a time, attempting to complete the word
  3. If the player completes the word before losing all their lives, they WIN! Otherwise, game over :'(

Plans for project

  • Add output of letters player has already guessed
  • Add ascii art of hangman

ENJOY :)

About

A fun little game of hangman written up in C. For those from 42, it is norm compliant.


Languages

Language:C 89.2%Language:Makefile 10.8%