Questions tagged [hangman]
A common word-guessing game, usually involving a pictorial representation of a stick figure being hanged, progressively rendered for each wrong guess
205 questions
8
votes
2
answers
1k
views
Python OOP game of Hangman
I am currently learning object oriented programming in Python.
I attempted writing an OOP program for hangman, and while the program is functional, I just ended up writing a very long class method. ...
9
votes
3
answers
2k
views
Command Line Hangman game
I've completed a Hangman game in Python and was wondering about the formatting of this code. There were several functions that I switched around while making this, and there were several times where I ...
3
votes
1
answer
160
views
Simple CLI Hangman Game in C#
I'm a beginner at C#, and this is a console application that I wrote as I'm attempting to recreate simple games such as Hangman, TicTacToe, etc. I'm wondering if there's any logic in my code that's ...
4
votes
1
answer
180
views
Hangman game in JavaScript
I have attempted to create a hangman game in JavaScript. Some parts of my code is a bit DRY. Basically, the Hangman class is a wrapper for all of the available actions in a typical hangman game: setup ...
4
votes
1
answer
206
views
Yet another CLI Hangman game
...with properly packaged/type-hinted code, automated testing, and no dependencies. Do note that this package requires Python 3.12 or later.
Only pyproject.toml and ...
2
votes
1
answer
738
views
Little CLI game in C++ with random words
the game is quite simple, you have to constantly guess the letters of a hidden word, but has a limited number of wrong attempts. The word you are looking for should be a random word from Wikipedia. I ...
10
votes
2
answers
226
views
Hangman game in C
I am a beginner who wrote this simple Hangman game in C for fun and to practice programming. I am looking for advice on optimizing this code and making it adhere to best practices. Are there too many ...
5
votes
1
answer
229
views
Hangman Game in HTML + CSS + JS
I recently developed a hangman game with HTML, CSS and JavaScript and I would like to get your feedback and tips to improve it. The goal of the game is to guess a secret word before 6 incorrect ...
7
votes
1
answer
127
views
Any advice for my HANGMAN game with PySimpleGUI?
Could you please tell me if there's anything I could improve in my Hangman Game ?
I made this Hangman Game in PyCharm and been improving and adding features for some time. It would be nice if someone ...
3
votes
1
answer
117
views
Rust implementation of Hangman
I created a rust implementation of hangman as a command line version. The user can enter characters to find out the desired word.
I really appreciate any helpful comment which highlights how I could ...
4
votes
1
answer
330
views
Hangman game, with secret word provided by user
I recently started learning programming and in particular Java. I wrote this small hangman game which takes the input for the secret word from the user.
It all works as intended; I would like to know ...
2
votes
1
answer
135
views
C++ Hangman Game, class organization
I have recently created a Hangman Game in C++ and I would like your feedback on any improvements that can be made to this Hangman game I have written especialy in class organization. Here is the code :...
3
votes
2
answers
193
views
Aesthetic Python console hangman
I tried to code a console hangman game that looks a lot like hangman often does on paper, with a scattering of incorrect guesses next to the drawing of the hangman.
...
1
vote
2
answers
117
views
Object Oriented Hangman in Python Version 2.0
I am looking for as much criticism as possible. Specifically I am trying to institute BEST PRACTICES for OOP and game design. Enjoy!
Github hangman repository
Each Class is in a separate file and ...
2
votes
2
answers
99
views
Object Oriented Hangman in Python (version 1.0)
As always, I am looking for as much criticism as possible. Forums and exchanges like this are where I have received my most solid feedback.
Enjoy!
Github hangman repository
The code that I import is ...