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
15
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: ...
10
votes
2answers
90k views

Very simple Hangman game

Does this code follow standard conventions, not redundant? How I can make it more comprehensible for other people? It's an exercise from the Java introductory book: Write a hangman game that ...
40
votes
1answer
3k views

The right way to hang a man

Problem: I have seen a few questions around hangman. Usually this is done in a very hackish way, which usually can not be generalized any further. My thought or question is about the creation of the ...
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 ...
7
votes
1answer
968 views

Hangman in Swift

I am a Java programmer trying to learn the ways of Swift. I coded a Hangman game in Xcode. I was wondering what I could improve, specifically whether I used delegation correctly and if there is ...
4
votes
1answer
16k views

Hangman in Java

I have the following code in Java: HangmanFunctions class: ...
2
votes
1answer
456 views

Completed Hangman game

This works for the most part. I am very new to programming so be aware. ...
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 ...
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? ...
7
votes
2answers
795 views

Hangman from a beginner

I'm trying to learn programming with python by myself and I've made a hangman game for exercise purposes. ...
6
votes
2answers
2k views

Beginner word-guessing game

The aim is to guess a four letter string. Each letter can be tried four times. If the letter cannot be guessed, we go to the next letter until the fourth letter is reached. I looked at my code and ...
19
votes
2answers
2k views

Hangman on the C++ommand line

I'm wondering if my code is just a tad too long to post here, but if the only consequence seems to be getting high-level reviews, then that's perfectly fine. This is my implementation of Hangman in C+...
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 ...
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?): ...
5
votes
2answers
187 views

The right way to hang a man: final part

The problem: Making a simple hangman game. This is a continuation of the following question: The right way to hang a man. There I just tried to make the ascii-gallow. Now I have tried to write the ...
3
votes
1answer
83 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 ...