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
2 votes
1 answer
63 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 ...
user avatar
  • 43
2 votes
1 answer
89 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: ...
user avatar
4 votes
0 answers
115 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,...
user avatar
  • 361
1 vote
0 answers
55 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 ...
user avatar
  • 361
1 vote
1 answer
75 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 ...
user avatar
  • 361
1 vote
1 answer
67 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 ...
user avatar
  • 361
7 votes
2 answers
502 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 ...
user avatar
7 votes
2 answers
616 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 <...
user avatar
0 votes
3 answers
83 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 ...
user avatar
4 votes
1 answer
78 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 ...
user avatar
5 votes
2 answers
883 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: ...
user avatar
2 votes
2 answers
203 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 ...
user avatar
  • 21
5 votes
2 answers
110 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 ...
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? ...
user avatar
  • 361
3 votes
2 answers
191 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, ...
user avatar
1 vote
0 answers
46 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. ...
user avatar
2 votes
1 answer
105 views

Java hangman game

This is my implementation of the classic "Hangman" word-guessing game. Class LePendu : ...
user avatar
  • 21
2 votes
1 answer
110 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 ...
user avatar
0 votes
1 answer
135 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
72 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 ...
user avatar
  • 53
1 vote
1 answer
71 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 ...
user avatar
  • 639
2 votes
1 answer
552 views

string guessing game in java

...
user avatar
3 votes
1 answer
909 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 (...
user avatar
  • 159
2 votes
2 answers
114 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 ...
user avatar
4 votes
1 answer
154 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 ...
user avatar
  • 193
3 votes
1 answer
164 views

Simple Hangman game in Python3

I made a simple Hangman game in Python: ...
user avatar
2 votes
1 answer
122 views

Simple hangman game from beginner

This is my 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 ...
user avatar
1 vote
2 answers
343 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 ...
user avatar
3 votes
1 answer
750 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 ...
user avatar
4 votes
2 answers
58 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? ...
user avatar
4 votes
1 answer
183 views

Hangman Game in Python-3

...
user avatar
2 votes
1 answer
96 views

New to Rust: Hangman game

I decided to try my hand at a Hangman game to familiarize myself a bit with the language. ...
user avatar
2 votes
2 answers
306 views

Feedback HangMan game using python and tkinter for GUI

Having too much spare time during the quarantine I learned some basic python (plus tkinter for GUI) and made a little HangMan game :) Would love any feedback for improvement. Thank you. ...
user avatar
  • 103
4 votes
1 answer
89 views

Command-line English Hangman game

Introduction As a Python neophyte, I implemented the Hangman game as a practice, which operates case-insensitively on the 26 English letters. My biggest concern at the moment is my use of ...
user avatar
  • 8,937
9 votes
4 answers
526 views

Hangman game implemented in Python

I'd like to know how to improve this code because I think that the main_func is too big and I can not split it into other functions or classes. Also, I want to know ...
user avatar
6 votes
2 answers
108 views

My Guessing Game

This is a project that I remade to help me understand function definitions better. It may not be great but I am proud of it. I would love to have you review this project and tell me what I could ...
user avatar
  • 359
11 votes
3 answers
2k views

Hangman Bot built with performance in mind

I'm working on a bot that can use a wordlist to play hangman optimally as fast as possible. With the current implementation, the simulateGame function, which plays ...
user avatar
  • 221
5 votes
2 answers
166 views

Removing OO style coding from Haskell

Having coded in Objected-Oriented style my entire programming career, it's hard to adapt to functional style fully. I implemented a simple Hangman game: ...
user avatar
  • 375
4 votes
2 answers
165 views

Mini guessing-game

I am a beginner programmer and I would like to improve in coding and develop my skills. That is why I am asking this question, what should I focus on improving in this code ? ...
user avatar
  • 359
7 votes
1 answer
221 views

Python hangman code

guys I'm new to python and I decided to learn it via doing some project myself so I started working on Hangman game is there somebody willing to chceck my code for some common mistakes and what could ...
user avatar
2 votes
1 answer
62 views

Beginner Hangman Game

Hey guys I am trying to improve my Python Programming skills, I tried to build a hangman code. I know it is not perfect but I works. I am looking for some hints or advice to improve this script. <...
user avatar
  • 21
4 votes
0 answers
85 views

Check the organization and code style of a small Python project

Could you look at my code for the completed training project of the Python Hangman game and tell me where you can improve the code style? Code on GitHub ...
user avatar
4 votes
2 answers
222 views

hangman with ten chances

So this is the code I wrote for hangman in python. I want to know of can shorten this code more further and make it look more professional ...
user avatar
1 vote
1 answer
67 views

My second hangman game (Hangman in C++), how to avoid nested while-loops? How to stick to the SRP?

Here I already asked for tips, and I wrote another hangman game with the tips I got. My questions are: is int game() doing too many things that I should split ...
user avatar
  • 203
1 vote
2 answers
145 views

A first Hangman game in C++

I wonder whether I included too many libraries; also can you point out obvious beginner mistakes? Is the while loop the best for what I intend, or is there a ...
user avatar
  • 203
4 votes
2 answers
199 views

Messy Hangman Game

As it is now the end of my semester for my programming class, we had a final test were we were supposed to make a short hangman game. I have since added some small improvements, such as showing the ...
user avatar
  • 802
1 vote
1 answer
79 views

Hangman Game Python

I have recently made a hangman game using python. This is the main bulk of the code, however, there are other files that I have writen that get the words from a dictionary, or see if a word repeats ...
user avatar
  • 113
1 vote
1 answer
514 views

Hangman game in beginning Java

Hangman game coded in Java (at a beginner's level) where Hangman.java can be run with one or more arguments. Hangman.java: ...
user avatar
  • 605
2 votes
2 answers
110 views

Single player Hangman in Python

This program is yet to become user-friendly and is still in development, but I wanted to improve the current code. ...
user avatar
  • 2,710
2 votes
1 answer
126 views

Object oriented hangman game

I'm a hobbist trying to become a professional software developer. I do have a lot interest in Data Science in general and my goal is to master Python before diging deeper into specific data science ...
user avatar
  • 193