Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

3
votes
2answers
46 views

Functional Programming Hangman Practice

Recently, I have been trying to improve my functional programming skills and understanding. While at work today, my coworkers and I were playing Hangman in a group chat. I thought of a program that ...
4
votes
2answers
56 views

My Hangman game in Python

I've been trying to practice more Python recently so I decided to try and make different simple text-based game programs. I'd hope anybody could help me see how to make the code neater or more ...
2
votes
1answer
85 views

Hangman game with Python 3

I tried to create a "guess the word" game. I would appreciate to get some suggestion to improve myself, because I'm new at Python. ...
3
votes
1answer
57 views

Implementing Hangman using a State Pattern

I decided to implement a Hangman game using an object oriented State Pattern design. This is one of my first actual OOP as I normally write functional code. Code use: ...
3
votes
1answer
68 views

A simple Java game where the player guesses the word

It's a simple word guessing game. The game picks a random word - you guess a letter until it's correct, the game automatically starts a new one. Is my code readable? Am I doing anything that could be ...
5
votes
2answers
99 views

My second game (Hangman in C++)

I recreated the game Hangman and I'm decently happy with it, but like always it would be preferable if anyone knew how to improve my code: main.cpp ...
2
votes
1answer
82 views

Beginning C, hangman

I have been working on this hangman game for a little while trying to get familiar with C programming. The game seems to work fine but I am looking for some pointers on my code. Are the global ...
15
votes
3answers
2k views

Hangman Game with C++

After finishing my C++ course, I decided to make a hangman game. (without the drawing part) I was wondering how the code could be improved. Header File: ...
1
vote
0answers
36 views

Python Hangman (guess the word) game

I implemented a Hangman/guess the word clone in Python. This is my first attempt at making an actual interactive app instead of just a list of functions or a static program. It is also the first time ...
4
votes
1answer
83 views

Simple HangMan game Implemented in Java

This simple implementation of the HangMan game in Java is a side project, unlike the usual programs I write which are either school assignments or problems on coding websites. It feels great to have ...
3
votes
1answer
178 views

Java simple game - guess the word

I developed a simple and short java game in which a random word is selected and the user needs to guess it's letters one after another. I'm a java beginner so I'll be glad to hear your thoughts. ...
2
votes
3answers
75 views

Display command-line Hangman

This code is part of my Hangman game. One of my minor issues is how to properly print out the hangman. Could you please give me hints on how to make the code less hardcoded? This code is so redundant,...
4
votes
2answers
96 views

Hangman v2 written in C

This is a follow up to my previous Code Review, and I have incorporated feedback I received in this revision of the code, along with some other improvements. I would appreciate your feedback on this ...
3
votes
1answer
76 views

Hangman written in C

I would like your feedback on any improvements that can be made to this Hangman game I have written in C. Specifically, improvements in terms of runtime and code organization. This game was a nice way ...
3
votes
2answers
146 views

Simple Hangman game - first Python project

I created a basic Hangman game that uses a text file to select a secret word. Are there any areas for improvement? ...
7
votes
2answers
924 views

Hangman game, written after taking a Python course

I have recently finished a course on Python 3 and I really learned a lot, but every time I write a script, it is messy and I often feel like there must be shorter, more efficient ways to write and ...
4
votes
1answer
84 views

Hangman program w/ Python and JSON

What improvements can I make? Should I organize my functions based on A-Z? For example, find_letter function comes before guessing function. ...
2
votes
1answer
40 views

Basic Hangman using Python

I've stopped programming in Python for a long time now, someone recommended to me that the best way to get into it is by trying to code a game of Hangman, and that's what I did. Or tried to, at least. ...
2
votes
3answers
234 views

Simple Hangman in PHP

This is the simple game of hangman. Guess letters and six wrong letters means you're dead. This took me about 20 hours. And I learned enough to be certain I could make something better now in half ...
2
votes
1answer
163 views

Hangman game Python project

This is one of my first programmes which I had written (definitely first over 100 lines) and I could really use some feedback. ...
4
votes
1answer
327 views

Hangman Game in C++

This is my version of Hangman Game, written in C++. How could it be improved? what should I avoid using/doing in future projects? ...
4
votes
1answer
144 views

python hangman (another one)

I'm pretty new to python and have created a simple hangman. Since doing so I realise this appears to be a fairy common theme. It uses /usr/share/dict/words on the local system, resulting in some ...
4
votes
2answers
291 views

Very basic Hangman game in Python

I'm trying to learn Python, so I made this project. I think there are problems with the code, but I don't know how to improve it. ...
2
votes
1answer
222 views

JS Procedural Hangman

I wrote a procedural version of Hangman (very basic) and would appreciate some feedback on the following points: Is the basic logic OK? Any obvious improvements? Any details or matters of style I ...
6
votes
1answer
125 views

Simple CLI Python Hangman game

Preamble: I am very new to Python, and outside of Googling functions and a former work colleague telling me why I'm wrong, I have no formal training and haven't taken any "Learn Python" courses. I ...
2
votes
1answer
164 views

hangman in bash

Rules 7 mistakes allowed. Hangman rules. Disclaimer I don't have a figure (drawing) of the hangman as this project took way longer than I thought I would take. It took like 9 hours during 3 weeks. ...
0
votes
2answers
108 views

Secret hangman homework

Recently I was given homework to make a hangman game, where I wrote the below. How can I refactor this to use classes? ...
4
votes
0answers
122 views

Code efficiency check for hangman in Delphi

I recently coded a game of hangman and wanted to know, A: Are there any places it could be more efficient? B: Are there any things that are distinctly wrong with it, since I know people seem to say ...
3
votes
0answers
763 views

Hangman Game with Graphics

...
12
votes
5answers
871 views

Find all words that satisfy unknown letters (Hangman)

I have been working on a function which might be used to solve a word game like Hangman or "Wheel of Fortune". Basically, I wish to search from a very large ...
5
votes
3answers
368 views

Hangman game in Ruby

I'm just a few months in learning to code and never had my code reviewed. Is this class structure ok? Should I split it differently? How is the code overall? ...
2
votes
2answers
311 views

Java Hangman implementation

I'm learning Java and plan to take the OCA Java SE8 exam pretty soon. I made a fairly primitive Hangman game to aid with the learning. I would love some feedback on it if possible. Anything that's not ...
7
votes
1answer
105 views

Hangman game, with the number of guesses depending on the word length

This is an interactive game between the computer and the player, where the computer chooses a word and the user has to guess the letters in that word. The computer provides certain number of guesses ...
5
votes
2answers
194 views

Simple game of hangman which counts wins and losses

I am trying to get this code on Python 3.6.3 to be: More efficient More readable More simple This code is supposed to be like hangman, just without the stickman. I also have added code which will ...
6
votes
1answer
278 views

Hangman Python Game

I have recently been diving into Python. I have been making really small programs like this one and I am not confident in how practical I am writing Python. This is because I am not familiar with the ...
4
votes
2answers
3k views

Guessing the word game

I'm done with this "Guessing word game" but I have a very ugly method named startGuessing(). I tried to make it cleaner and more readable but I couldn't. How I can improve this method? ...
7
votes
1answer
74 views

The game Hangman made in Python 3 with a little bonus

This code is for the game Hangman, I added a little bonus in it for cheating/debugging reasons, I thought it's worth sharing since it's the biggest code I've created yet. Description: Classic game ...
3
votes
1answer
16k views

Another Python Hangman

I have finished my Python Hangman app with very basic code. ...
4
votes
3answers
324 views

Simple Python Hangman Prog

I just started learning programming in Python and decided to write a game of hangman to try and learn more about how certain things worked. Any constructive criticism would be greatly appreciated. <...
0
votes
2answers
1k views

Hangman game class in Python

I am just posting this in hopes of someone pointing out any ways I could improve my hangman game. I know there are properly a lot of silly issues and unnecessary parts to this, but it works and now ...
2
votes
2answers
164 views

My first project - mini hangman game

I decided to polish my skills a little bit after learning about one dimensional arrays, and built my own mini project - hangman game. I'd like to have some criticism, I know it's not perfect and far ...
8
votes
4answers
723 views

My Hangman game created using PyQt5 and Python 3.5

This is my Hangman game that I created using PyQt5 and Python 3.5 on my Windows 7 machine. What do you think? Is there anything you thing I could change/improve in terms of code or visually (font, ...
3
votes
1answer
1k views

Basic Hangman Java Project

I have recently begun trying to learn Java and decided to make a basic Hangman game. The game uses a text file to retrieve a random word for the game. I am looking for some general feedback on how I ...
4
votes
2answers
7k views

Text-based Hangman game in Java

I wrote a Hangman text-based game in Java that needs to include the features that I included in the comments of my code. In short, the game will ask the user to type a word that they (or a 2nd person)...
17
votes
4answers
3k views

Beginners Python Hangman Code

I just started learning about Python at school and decided to start this little project with the basic knowledge I have. Most of the code is pretty lengthy and I know there are probably more efficient ...
1
vote
1answer
4k views

Python Simple Hangman Game

Q1. Can this code be simplified/ made more efficient? Q2. Why does the following code have to be indented in the way that it is? used.append(guess) and ...
7
votes
1answer
623 views

Hangman mini-game on python

I'm a 16 year old who has picked up coding recently using the codecademy course on Python. I completed the last of the lessons yesterday and decided to start on a simple Hangman game. As this is my ...
5
votes
1answer
4k views

Game of Hangman that uses classes for C++

I would like feedback on this code. This is a game of hangman which uses classes but my knowledge of this category is very limited so I did the best I could. I would like my code to become as ...
14
votes
4answers
2k views

Hangman in Python 3

I started learning Python a couple of weeks ago and decided to make a game of Hangman. Some of the features: Take in player name Allow them to pick and change difficulty level Play again when the ...
6
votes
3answers
175 views

Hangman implementation for teaching a Python course

I am teaching a Python crash course and thought a Hangman rendition would be fruitful. I have an end product that I'll work towards with the hour that I have for the course and I was wondering what ...