Skip to content

Davo0416/Hangman

Repository files navigation

Description

A Web-based version of the game Hangman made using VSCode and Krita. The games goal is to guess the hidden word by inputing letters or the word itself.

image

How does it work

The game chooses the secret word randomly from ~250 words. The secret word gets converted into an array of letters to make its processing easier. The input is validated to only be not already guessed letters or the secret word itself. After each inputted letter the code compares it to each of the letters in the array and reveals them accordingly. If the inputted letter has been already guessed the user is asked to try again. The program keeps track of this by adding each unique input letter to another array. Else if the inputted letter is not present in the array (secret word) the player loses one of his 7 lifes. The game ends either when the secret word has been guessed or the player ran out of lifes.

About

A Web-based version of the word guessing game - Hangman

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published