shayanfalla / Hangman-Game

The old hangman game implemented on a multithreaded server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hangman-Game

This is the classic hangman game implemented on a multithreaded server. This was part of an assignment during my third year in KTH.

An example of a game session is as follows:

Hi, before we start, enter the IP address! (press enter if localhost)


Welcome (again) to the Hangman game made by Shayan Fallahian! (shayanf@kth.se)

Your total score so far is: 0

The word has 3 letters.

Lets begin!

Current state: _ _ _ 

You have 3 tries left.
Enter a letter or word! ('-' to quit)
a

Current state: _ _ _ 

You have 2 tries left.
Enter a letter or word! ('-' to quit)
e

Current state: _ _ _ 

You have 1 tries left.
Enter a letter or word! ('-' to quit)
b

You ran out of guesses.
Your final state was: _ _ _ 
Word was sky.

Do you want to play another game? (yes/no)
no

Closing connection...

One could continue and rack up their score aswell if desired!

The output can be changed and formatted as you wish with ease as it is printed on the command line.

Enjoy!

About

The old hangman game implemented on a multithreaded server


Languages

Language:Java 100.0%