Program that allows the user to play the classic game of Hangman. The user is prompted to enter a word, and the program will display a partially completed word, as well as the number of incorrect guesses remaining. The user is prompted to guess a letter, and the program will respond appropriately. If the user guesses a letter that is not in the word, the program will display the incorrect guess count, and the user will be prompted to guess another letter. If the user guesses a letter that is in the word, the program will display the partially completed word, and the user will be prompted to guess another letter. If the user guesses all the letters in the word, the program will display the completed word, and the user will be prompted to play again.
To install the program with docker, run the following command in the terminal:
docker build -t hangman-py .
or
make build-hangman
Then run the following command in the terminal:
docker run hangman-py
or
make run-windows
But we still encountered a problem with the videodriver.
Traceback (most recent call last):
File "/app/Hangman-code.py", line 13, in <module>
display = pygame.display.set_mode((width, height))
pygame.error: No available video device
Pandu F 🖥️ 120140020 |
Nashirotul 🖥️ 120140031 |
Adi S 🖥️ 120140038 |
Lidya A 🖥️ 120140042 |
Devi Kurnia 🖥️ 120140060 |
Hanif 🖥️ 120140120 |
---|
- Beta Ver. 0.1.2