Skip to main content

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
86 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 ...
MrTungsten's user avatar
4 votes
1 answer
120 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 ...
Napoleon Bonaparte's user avatar
3 votes
1 answer
172 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 ...
InSync's user avatar
  • 219
2 votes
1 answer
694 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 ...
Tobias Grothe's user avatar
10 votes
2 answers
169 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 ...
smwt's user avatar
  • 187
4 votes
1 answer
191 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 ...
Lucio Mazzini's user avatar
7 votes
1 answer
100 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 ...
Paichiwo's user avatar
  • 161
2 votes
1 answer
83 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 ...
user6475988's user avatar
4 votes
1 answer
293 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 ...
ANTONIO ALTAVILLA's user avatar
2 votes
1 answer
100 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 :...
Yann Depledt's user avatar
2 votes
0 answers
105 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. ...
minseong's user avatar
  • 749
0 votes
2 answers
83 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 ...
Infinite Grasp's user avatar
2 votes
2 answers
57 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 ...
Infinite Grasp's user avatar
3 votes
1 answer
87 views

Hangman game succesfully built

I have completed the Hangman game. Can somebody look at the code and see what I've done wrong? What should I add to improve it? Are there any bugs in it? ...
mcccuklev's user avatar
  • 139
4 votes
2 answers
1k views

Hangman Game: Revealing guessed letters

I solved this problem: the Edabit Hangman Game challenge. Create a function that, given a phrase and a number of letters guessed, returns a string with hyphens - ...
mcccuklev's user avatar
  • 139
0 votes
1 answer
72 views

Converting a Hangman guess to lowercase [closed]

I am very much a beginner (only if/else, for, while, slice etc) and I wrote Hangman game. I needed to put in there code saying "let’s transform the player's guess to lowercase one every time he ...
Lia's user avatar
  • 21
1 vote
1 answer
126 views

Hangman game in Haskell, written using a state monad

I recently made a simple hangman game in Haskell but soon wanted to explore the state monad, since it could possibly simplify the code. The result was this (see below), which is exactly 30% more lines ...
ola_bandola's user avatar
3 votes
1 answer
155 views

A simple hangman game in Haskell

I just finished a course of functional programming in uni and continued to study Haskell because I found it very interesting! I made a simple hangman game and would like to hear any of your thoughts ...
ola_bandola's user avatar
2 votes
1 answer
860 views

Python smart Hangman game

I made a smart Hangman game in Python and now want your opinion about the readability and code quality of this script. I want to improve my overall coding style. So I am happy to hear improvements for ...
adama's user avatar
  • 123
2 votes
1 answer
109 views

A Rust beginner's Hangman game

I have been learning Rust for a few days (This is my third) now, and I've really fallen in love with the language, this is my first real project, Hangman. I was wondering what I could do better / what ...
Sam's user avatar
  • 43
2 votes
1 answer
966 views

Hangman game in Python with OOP

I made the hangman game using OOP. It is the first "big" project I do using OOP. I would like to know if there is something to improve in the program I made. This is the code: ...
Lucio Mazzini's user avatar
5 votes
0 answers
152 views

Java OOP Hangman revision #4 includes UML

This is a continuation of this question. In the game the player chooses a topic and then gets a random word (or words) from that topic to guess. I've repartitioned the code into objects several times,...
scripta's user avatar
  • 501
1 vote
0 answers
64 views

Java OOP Hangman - revision #3 (WordToGuess)

This class gets a word to be used in a game of Hangman. The player can select a topic from which a random word is selected. The topic is the name of a text file. For example the text file scientists ...
scripta's user avatar
  • 501
1 vote
1 answer
82 views

Java OOP Hangman - revision #2 (get word in category)

This code gets a random word from a word list for a category chosen by the player. The categories are the names of text file containing a list of words. "Words" can contain spaces and ...
scripta's user avatar
  • 501
1 vote
1 answer
88 views

Java OOP Hangman - revision (get word in category)

I've revised the code in the light of comments (the initial post was here). I've initially just redone the logic to get a random word for the category chosen by the player. I'd appreciate any feedback ...
scripta's user avatar
  • 501
7 votes
2 answers
817 views

Hangman game in Python with nine possible words

I'm relatively new to Python, and I've been using the language for about a month. I set out to do the Hangman game. I would like to know if there are things to improve in the code of the program I ...
Lucio Mazzini's user avatar
7 votes
2 answers
628 views

First Hangman Game. Need Honest Opinion

Please provide your honest feedback. Thanks Doing Angela Yu's 100 days of code. Have not seen the videos on this section yet. This is just my attempt. here is the link to run the code. Hangman game <...
singhsokhal's user avatar
0 votes
3 answers
95 views

Object-Oriented Hangman In Python [Follow-Up]

This is a follow up after revisions made from this question. I've separated the program into 2 classes. The HangManData class is used to store game data such as the ...
Grewal_Creator's user avatar
4 votes
1 answer
124 views

Objected-Oriented Hangman game In Python

I'm still a beginner in python and made this simple program to practice OOP, I've ended up using the self keyword a lot and I'm not sure if this is normal or if I ...
Grewal_Creator's user avatar
5 votes
2 answers
10k views

Hangman game coded in C++

I have completed my hangman project in C++. I would like your thoughts and improvements on my implementation. Here is the code: ...
Random_Pythoneer59's user avatar
2 votes
2 answers
467 views

Fake Interview Scenario: Hangman

For a fake interview I decided to write Hangman. The first question I have is when reviewing someone's code for a job interview is it more important to write something short and sweet that gets the ...
Jack K's user avatar
  • 21
5 votes
2 answers
684 views

First Time Making A hangman game

I've Never really made a game or such in python but was bored, so I tried to make a hangman game. I don't like how many if else statements I used but I can’t think of a better way to do it. Any ...
Seanie Stack's user avatar
15 votes
3 answers
2k views

OOP Hangman Game

My daughter and I are trying to teach ourselves Python and OOP. We wrote a hangman game, and we'd really appreciate some feedback. Are we heading in the right direction? How could we improve it? ...
scripta's user avatar
  • 501
3 votes
2 answers
753 views

Hangman game with only one word

This is a hangman game. The only word is 'word' and I am not planning on changing this since I am not going to publish this game or anything. If there is any unnecessary/bad code I need to get rid of, ...
user13988674's user avatar
1 vote
0 answers
131 views

Hangman program (python)

I created a fairly simple hangman program as a little side project. Could you please tell me of any improvements/suggestions/criticism/feedback that you have about my code? Thank you in advance. ...
Manav Desai's user avatar
2 votes
1 answer
195 views

Java hangman game

This is my implementation of the classic "Hangman" word-guessing game. Class LePendu : ...
Cheg 62's user avatar
  • 21
3 votes
1 answer
652 views

Python Text-Based Hangman Game

I have just written a hangman game in Python for a school project. It reads in a list of words from a text file, and graphics from another text file. For each word, the program asks keeps asking for ...
Developer's user avatar
0 votes
1 answer
220 views

A C# hangman game

I made this c# hangman game... I would like to know what you all think about it. This is a pretty basic but still gets the job done let me know what you think. ...
user avatar
5 votes
1 answer
219 views

Hangman Game Efficiency

To put it simply, I'm making a hangman game and it works as it is, it correctly outputs what I want it to, and I have no problem with submitting it now. I only wish to make it more efficient, and I ...
IcoSli's user avatar
  • 53
1 vote
1 answer
95 views

Simple Hangman implementation in Rust

I'm starting out with Rust and decided to implement a game of Hangman. Can you please provide general feedback on the code? I've already identified some lines (see comments ...
BusyAnt's user avatar
  • 639
1 vote
1 answer
2k views

string guessing game in java

...
Aesha Shah's user avatar
3 votes
1 answer
2k views

Hangman Game from OCW MIT 6.0001 Pset No. 2

I just completed Pset 2 about the Hangman game that was issued from OCW MIT. The Pset has no available solution so that any comment regarding code writing best practices would be greatly appreciated (...
yfr's user avatar
  • 169
2 votes
2 answers
175 views

Classic games selection

It is an extremely basic mini-game menu. Link to my game. I know there are more experienced C++ programmers than me, so it would be a great help if you help make my code better. Thank you. PS: First ...
CrazyKanav's user avatar
4 votes
1 answer
204 views

C++ Hangman with a class

Well, hang-bar but same deal. Any things I could've improved? (I'm starting to get into c++, so chose this as a basic project) Actually, one question I had: I'm using code::blocks, which generates ...
Theo's user avatar
  • 193
3 votes
1 answer
197 views

Simple Hangman game in Python3

I made a simple Hangman game in Python: ...
TheOriginalOdis's user avatar
4 votes
1 answer
314 views

Simple hangman game from beginner

This is the first project I am attempting in Python, and my first time on Stack Exchange, so please be kind. The game uses a text file with lots of words. I was wondering how to improve the game by ...
JessicaBr's user avatar
1 vote
2 answers
907 views

Create a simple hangman game using OOP and Javascript

I had a task to create a simple hangman game using O.O.P. with Javascript. It had to render the puzzle and remaining guesses to the DOM but didn't require any C.S.S. This is what I created. This is my ...
user6248190's user avatar
3 votes
1 answer
2k views

Python Beginner - Basic Hangman Game Using Turtle

I built upon a previous beginners' class' hangman game to do graphics with Turtle. It should work with any .txt list of words in whatever location you specify at the top of the code (in my case on ...
DiogenesOfMiami's user avatar
4 votes
2 answers
83 views

Improvements to simple Hangman Game in Python

I created this hangman game today as my first stand alone project. It is a quite basic and simplified approach. How could I improve the game to make it more interesting? ...
IBYZ RULEZ's user avatar
4 votes
1 answer
228 views

Hangman Game in Python-3

...
Phinn Galactica's user avatar

1
2 3 4 5