Skip to content

Repository files navigation

Hangman Game

Summary

Hangman game classic.

The goal of the game is to find a randomly selected word letter by letter.
If the word contains the chosen letter, it will be displayed in the word. If not, the hangman draw will progress by one step.
There are only 10 steps, so you have to choose the letter wisely if you dont want José to get hanged.

If you think you've found the word, you can guess the entire word instead of just one letter. But be careful... If this is not right word the draw will progress by 2 steps.

In this version you can also:

  • Choose between different languages: English, French and even Russian.
  • Select difficulty for more challenge. (maybe to much)
  • Save your game progression and continue later.

🛠️ Installation and requirements ⚠

With Gitea

git clone https://ytrack.learn.ynov.com/git/pthomas/hangman-classic.git
cd hangman-classic/

Then with GitBash ⚠

For an optimal experience set the font size at 8pt (the minimum) with a black background
To access the menu, launch the game with a terminal window at least 156 wide by 47 high.

Note that you can change the size of the window at any moment after the menu in the actual game!

Start

Hangman can be run from Git Bash with the basic command go run ., it will create a new game by default in english with the easiest difficulty.
(You can modify those later in the Main Menu → Options).

Also, you have the possibility to choose the language of the words to find by launching the command go run . mots.txt, go run . words.txt or go run . слова.txt.
The game will automatically adapt the language to the list given.

As an example, if you launch the command:

go run . mots.txt

all the game will be in French.

Saves :

You can stop and save a game at any time by typing "stop" instead of choosing a letter.
You can then give the name of the save and the game will quit.

To launch the save you can select "saves" in the main menu and then select your save.
Be careful, by selecting a save and playing, it will delete the save file. If you want to keep it you will have to type "stop" again

You can also launch a save directly from Bash with the flag -startWith or -s followed by the save name.

Examples :

go run . --startWith <NameOfTheSave> 
go run . -s <NameOfTheSave> 

Created by :

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages