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
7
votes
1answer
123 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
240 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
326 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
5k 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 ...
5
votes
1answer
37k views

Another Python Hangman

I have finished my Python Hangman app with very basic code. ...
4
votes
3answers
416 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
2k 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
192 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
840 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
2k 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
15k 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
7k 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
732 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
5k 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
4k 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
200 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
142 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
214 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
4k 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
603 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
15k 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
6k 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
2k 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
278 views

Hangman Game - Python

Anything I can improve? ...
2
votes
0answers
115 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
403 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
12k 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
6k 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
197 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 ...
41
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
292 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
492 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
458 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
217 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 ...
7
votes
2answers
846 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
3k 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
675 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
2k views

Console HangMan game

...
10
votes
1answer
706 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
3k 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. ...