Skip to content

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

Notifications You must be signed in to change notification settings

lachlanstephen/hangman-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published