Hangman

Game starts with a window that gives player a choice to play 1v1 or against computer picking random word.

If you play against computer:

Input Password and Category fields are temporarily disabled and you can only specify the number of tries, you'd like to have(1-15, default = 11).
The password can be generated in polish(special characters included) or english and it can be from 5 to 10 letters long.
There are 2 additional files storing english and polish words of different length and a function that takes an array of words and a number of letters entered by user to generate a random password, it returns one word for a player to guess.

If you play 1v1:

You or your opponent can specify the password(field hidden, 5-20 letters).
You or your opponent can specify number of tries(optional, 1-15 tries, default = 11) and category(optional, 20 letters max)

The game itself shows you password length, category(if specified), time of current game session, used letters, tries and tries you have left.

Additional features:
Responsive Web Design

Technologies: