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
6
votes
3answers
180 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 ...
4
votes
0answers
139 views

Attempt at Idiomatic Hangman in Clojure

I am pretty new to Clojure & am loving it so far. After going through a few resources, I decided to make a hangman game. I'm wondering how idiomatic is my code & where can I improve it ...
3
votes
2answers
205 views

Hangman game performance

I want to change (for better performance) or optimize my code, especially for and while loops, maybe with lambdas or list ...
4
votes
1answer
3k views

JavaScript Hangman game

Basically, I am trying to make Hangman/Wheel of Fortune style game. The demo for the game I made is here. Is there anything I can improve or should change? ...
2
votes
2answers
436 views

Hangman Game made with Python

I know that some features overlap but this is because I added different functions to the code at different stages when I thought of them. ...
6
votes
2answers
3k views

Simple Hangman for Python

Assignment Criteria Create another version of the Hangman game, this time using Lists. The program should ask for the word to guess and the number of chances to be given. It should then ...
3
votes
1answer
12k views

Basic word guessing game

After doing a simple coding challenge regarding strings, I realized that I have forgotten a few things about them. As such, I decided to do a few basic string manipulation practices for myself. One ...
1
vote
1answer
4k views

Very Simple Basic Java Hangman Program

I wrote this hangman program. It takes three words in an array, picks a random word and then the user guesses the letters. It's lengthy, but it's extremely simple and understandable. Suggestions are ...
2
votes
1answer
4k views

Simple game - hangman

Recently I made simple hangman game in Java. Main.java ...
6
votes
2answers
1k views

Command line Hangman game

I was wondering if you can give me advice / and your opinion on the following code. I'm aware there are a few things that it doesn't presently deal with that could be enhanced (I don't have time, this ...
1
vote
1answer
271 views

Hangman Game - Python

Anything I can improve? ...
2
votes
0answers
87 views

Hangman — with a surfeit of for loops

How can I improve this code so I do not use so many for loops in this? ...
3
votes
3answers
6k views

Hangman game written in Python 3.5

This collects user's guesses for the word. The user has 8 guesses, a correct guess and a repeated guess does not affect the guess count. ...
7
votes
1answer
378 views

Hangman in stateless JavaScript

I just want some feedback to improve readability and structure for this implementation of Hangman. The goal was to write it in a purely functional way. However, coming from an imperative background, I ...
11
votes
2answers
9k views

C++ Hangman Game

I've been working in C++ for awhile now, but always like for others to look over my code as much as I can get them to. My main concerns are if I've made something overly complicated or if I've broken ...
3
votes
2answers
2k views

“Hangman” game in Python

I have been using Python 3 to learn programming, and this is a very basic task, but I want to gain good programming patterns/habits at the very beginning. ...
6
votes
3answers
5k views

Simple Python hangman game

I've created a little hangman game. It's pretty simple, and not to exciting but I want to know if there's a way I could turn this little game into something more extravagant and more exciting. How can ...
8
votes
1answer
2k views

Simple Hangman game in C++

I am trying to create a simple Hangman game. The game has an edit mode for first run in which the user has to supply 6 unique words. The game starts by shuffling words, then for every turn, it selects ...
5
votes
2answers
183 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 ...
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 ...
5
votes
2answers
270 views

My online hangman solver

I've created a simple hangman solver at solver.lukesalamone.com, and although I'd consider myself proficient in webdev I am by no means an expert. The trick with this is that since HTTP is stateless, ...
1
vote
1answer
464 views

A simple Hangman game in Python

I'm a noobie in programming so I've made a simple hangman game in python and I'd like someone to tell me how I could improve the code. edit:How could I do it using classes? ...
3
votes
1answer
417 views

A different way to execute a hangman game

Most hangman implementations I have seen keep a list of characters the player has already guessed and compares them to the players current guess each time to see if they have already made the same ...
3
votes
1answer
194 views

My first hangman game

I've been trying to learn Python and I've managed to muddle through enough to put together a simple Hangman game (albeit with a few bugs and game features missing!). However, I feel like I haven't ...
6
votes
2answers
789 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. ...
4
votes
2answers
3k views

Hangman Game in windows forms

today I created a simple hangman game, which has 10 different categories with 10 words each. The words order is being randomized each time you pick a category. You have the chance to pick a wrong ...
8
votes
3answers
3k views

Simple Hangman game in Java

I'm teaching myself Java and I had some basic questions on how well I am writing my code for readability. I feel like sometimes I'm just writing code that works, and I'm not that proud of myself when ...
1
vote
2answers
2k views

Hangman Game in C#

I've created a simple Hangman game (not finished yet). What could I improve? (This isn't intended to be object-oriented but suggestions on that are also welcome.) What are its flaws? Here's the ...
5
votes
1answer
606 views

Simple Hangman game in Python

I recently started learning Python, and made a simple text based Hangman game. I wanted to know if there could be anything done to make the code cleaner or more efficient. ...
2
votes
2answers
1k views

Console HangMan game

...
10
votes
1answer
664 views

Hangman learning AI

I have been learning AngularJS and have written my first app. It's a Hangman AI which learns words and guesses the solution based on the words it knows. Please look over my code and provide some ...
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 ...
2
votes
2answers
2k views

Python Hangman Game

This is my hangman game code for my GCSE computer science coursework. It has been submitted but I was wondering if there is anyway to improve it. ...
6
votes
2answers
528 views

Beginner Hangman in Python

I'm new to programming (just about 2 months), and have been trying to learn as much as I can as quickly as I can. I made a little Hangman game as a practice project this weekend. It doesn't have ...
8
votes
1answer
476 views

HangPerson in Haskell

I created a HangPerson game in Haskell and I must admit it feels very imperative. How can I make it more "functional?" Are there more elegant ways of breaking up the task? The ...
2
votes
3answers
836 views

Fairly Simple Hangman in Python

This is my take on a simple hangman game, which is played from command prompt. ...
18
votes
2answers
2k views

Simple game of Hangman in Python

I'm starting out with learning how to program in Python and created a Hangman game. I think there is a lot of unnecessary code but I am not sure how to improve it. I wanted to avoid using global ...
2
votes
2answers
1k views

Hangman game school project

This is a school project and took me a while to write the code. Any help to improve my code is welcome! ...
6
votes
1answer
2k views

Hangman with ASCII

I have just made a game called Hangman. I have added some stuff which people don't normally use, like cheat-code/s, time.sleep(). How can I improve this, in both ...
4
votes
1answer
894 views

Second attempt at Hangman in Swift

I recently posted my Hangman game, and got some amazing feedback! The main thing suggested was to create a word generator that could read JSON files so that my hangman brain class didn't have to ...
7
votes
1answer
932 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
2answers
4k views

Simple Hangman game

It randomly gets a word from an array of Strings. It prints out a '_' char for every letter of the word, displays the ones you ...
12
votes
4answers
84k views

Simple game of Hangman

On my quest to become a master programmer I have created a simple game of Hangman, and so I thought I would upload it here and see how it could be refined. One question I had was my use of exception ...
10
votes
2answers
88k 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 ...
9
votes
2answers
292 views

Hangman in COBOL

Whenever I learn a new (or an old :)) programming language, I implement Hangman in it. This time it's with COBOL. ...
10
votes
1answer
2k views

Hangman game using Java 8

I’ve been getting used to Java and I’ve written a simple hangman game using event-driven programming in Java 8. Please let me know of any improvements regarding the readability and design of the ...
7
votes
1answer
10k views

Hangman program in Java

Here's an implementation of Hangman using Java 6. I've split the code into 2 classes - a logic class & a gui class. Is it ok to have so many static member variables? Please let me know if there ...
7
votes
1answer
555 views

Implementation of Hangman in Java

Here's an implementation of Hangman that I've written that uses a basic GUI. As I am new to Java, please let me know of any improvements I can make to my coding style. Thanks for your help. ...
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+...
2
votes
1answer
451 views

Completed Hangman game

This works for the most part. I am very new to programming so be aware. ...