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
5
votes
6answers
1k views

Hangman game in Python

While I'm not new to Python, this is my first 'bigger' Python program I created, also my first game in Python. ...
8
votes
5answers
4k views

First Hangman game

This is my first ever program created after reading a book on Python. Do you have any suggestions for me? Anything that are considered bad habits that I should correct for my new project? ...
12
votes
4answers
4k views

Hangman game in Java - second try

Please look over my new object-oriented version of my Hangman game I posted here about two weeks ago. I know I should work more on commenting and be clearer and more descriptive of the methods and ...
7
votes
3answers
3k views

Hangman game in Java

I'm hoping someone can look over my code and tell me if there is anything I can improve. I am not very experienced with Java. I am hoping for some feedback as to avoid developing any bad habits which ...
5
votes
2answers
2k views

Python Hangman Console

I'm quite new to Python and have been experimenting. So far I have made a simple hangman type game which creates a random word and the user then guesses it. I'd like to know if I've committed any bad ...
10
votes
2answers
3k views

Hangman game with hard-coded word or phrase

I feel that this implementation can still be simplified. I've tried to keep variable scopes low and have used as much of the standard library as I could. It currently works with a hard-coded word or ...
10
votes
2answers
772 views

“Hangman” game follow-on

Last week I asked to review my "Guess a number" game in Java here I learned so much that I decided to try a little harder game and put into practice all the amazing feedback I received there. Would ...
8
votes
3answers
2k views

2-player in a Python hangman game

This is a follow-up: Python Hangman Program I'm working on adding a few features to my hangman game, and I just implemented two-player gameplay, in the form of one player chooses the word to be ...
5
votes
1answer
7k views

My HangMan Game

I have been trying to learn C by making a Hangman game. It's not perfect, but with C, I worry that my coding practices will not be very good. I'm also new to allocating memory myself, so I feel I ...
7
votes
2answers
11k views

Python Hangman program

To learn Python, I've been working through Learn Python the Hard Way, and to exercise my Python skills I wrote a little Python Hangman game (PyHangman - creative, right?): ...
2
votes
1answer
464 views

Python Hangman feedback

Just looking for some feedback on a hangman script. It works perfectly fine; I'm just trying to master the Python language, and the best place way to get better is to ask the true masters! ...
3
votes
1answer
17k views

Complete Hangman game

I would like to improve code readability and reduce the complexity of my code to improve the maintainability of the source code. If you have any tips, please say so. I was also wondering if it would ...
6
votes
2answers
491 views

Hangman game code refactoring

I would like some help refactoring this code. This is to improve some of the nonfunctional attributes of the software to improve code readability reduce complexity to improve the maintainability of ...
3
votes
1answer
196 views

Hangman game background image possibly inefficient

I'm making a Hangman game and it seems that my code doesn't provide me much freedom with using layouts. I added an image to my JFrame then I added a ...
3
votes
2answers
261 views

Hanging men efficiently

I can't seem to get the formatting right, so here is the pastebin if needed: http://pastebin.com/g6VmdYbM ...
5
votes
1answer
248 views

Hangman - my first Clojure code

This is my first attempt at Clojure! Apart from all game related issues, how is my code? Is there anything I can do to make it more idiomatic? ...
7
votes
2answers
1k views

Console based Hangman in Java

I just created a Hangman app (same game mechanics mostly) using Java. I did this mainly to test my knowledge in OOP design/coding. I'd like to know your thoughts on my code The whole project is on ...
14
votes
1answer
2k views

Hangman game logicistics and cleanliness

I recently started working on my code's cleanliness/logistics and would appreciate it if you could give me some tips on how to improve certain things. Here's a simple console Hangman game I've made: ...
6
votes
2answers
593 views

Improving Hangman game

I'd like to know how this program can be improved. Any comments or critiques are most welcome. ...
4
votes
1answer
16k views

Hangman in Java

I have the following code in Java: HangmanFunctions class: ...
5
votes
1answer
1k views

Code Review for Hangman in C++

I have the following C++ program: ...
1
vote
3answers
244 views

Set visible interface from method/class

I started feeling like my code was becoming a little cluttered in the graphics: ...
6
votes
3answers
4k views

Hangman in Python

I created this version of Hangman in Python 3. Does anyone have any tips for optimization or improvement? ...
3
votes
2answers
1k views

In my Hangman game, one of my functions is correct but messy

I got a ton of helpful tips last time I posted some code, so I thought I would come back to the well. My function is deciding whether or not the secretWord has ...
4
votes
2answers
865 views

Hangman game code

I've developed a code for a Hangman game and what I need help in is basically simplifying, correcting and removing parts of the code that are not needed (or there is an easier way to do it). I think ...
6
votes
1answer
893 views

Small Haskell Hangman game

I've been learning Haskell, and a while ago I created this Hangman game. I've been working on using a library for terminal output, so no more hardcoded escape codes, but in the meantime I'd like some ...
12
votes
3answers
2k views

Testing new C++11 features with Hangman

I wrote a Hangman game to try out some of the new features in C++11. I'm pretty new to C++, and I would like some good advice on how I can improve this code (in terms of conventions, bad/good ...