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
3
votes
1answer
62 views

Simple Hangman game in Python3

I made a simple Hangman game in Python: ...
3
votes
1answer
71 views

Simple hangman game from beginner

This is my first project I am attempting in Python, and my first time on Stack Exchange, so please be kind. The game uses a text file with lots of words. I was wondering how to improve the game by ...
1
vote
2answers
52 views

Create a simple hangman game using OOP and Javascript

I had a task to create a simple hangman game using O.O.P. with Javascript. It had to render the puzzle and remaining guesses to the DOM but didn't require any C.S.S. This is what I created. This is my ...
3
votes
1answer
71 views

Python Beginner - Basic Hangman Game Using Turtle

I built upon a previous beginners' class' hangman game to do graphics with Turtle. It should work with any .txt list of words in whatever location you specify at the top of the code (in my case on ...
4
votes
2answers
50 views

Improvements to simple Hangman Game in Python

I created this hangman game today as my first stand alone project. It is a quite basic and simplified approach. How could I improve the game to make it more interesting? ...
5
votes
1answer
140 views

Hangman Game in Python-3

...
2
votes
1answer
58 views

New to Rust: Hangman game

I decided to try my hand at a Hangman game to familiarize myself a bit with the language. ...
3
votes
2answers
98 views

Feedback HangMan game using python and tkinter for GUI

Having too much spare time during the quarantine I learned some basic python (plus tkinter for GUI) and made a little HangMan game :) Would love any feedback for improvement. Thank you. ...
4
votes
1answer
76 views

Command-line English Hangman game

Introduction As a Python neophyte, I implemented the Hangman game as a practice, which operates case-insensitively on the 26 English letters. My biggest concern at the moment is my use of ...
9
votes
4answers
519 views

Hangman game implemented in Python

I'd like to know how to improve this code because I think that the main_func is too big and I can not split it into other functions or classes. Also, I want to know ...
6
votes
2answers
95 views

My Guessing Game

This is a project that I remade to help me understand function definitions better. It may not be great but I am proud of it. I would love to have you review this project and tell me what I could ...
11
votes
3answers
2k views

Hangman Bot built with performance in mind

I'm working on a bot that can use a wordlist to play hangman optimally as fast as possible. With the current implementation, the simulateGame function, which plays ...
5
votes
2answers
126 views

Removing OO style coding from Haskell

Having coded in Objected-Oriented style my entire programming career, it's hard to adapt to functional style fully. I implemented a simple Hangman game: ...
4
votes
2answers
106 views

Mini guessing-game

I am a beginner programmer and I would like to improve in coding and develop my skills. That is why I am asking this question, what should I focus on improving in this code ? ...
7
votes
1answer
177 views

Python hangman code

guys I'm new to python and I decided to learn it via doing some project myself so I started working on Hangman game is there somebody willing to chceck my code for some common mistakes and what could ...
2
votes
1answer
57 views

Beginner Hangman Game

Hey guys I am trying to improve my Python Programming skills, I tried to build a hangman code. I know it is not perfect but I works. I am looking for some hints or advice to improve this script. <...
4
votes
0answers
82 views

Check the organization and code style of a small Python project

Could you look at my code for the completed training project of the Python Hangman game and tell me where you can improve the code style? Code on GitHub ...
4
votes
2answers
199 views

hangman with ten chances

So this is the code I wrote for hangman in python. I want to know of can shorten this code more further and make it look more professional ...
1
vote
1answer
62 views

My second hangman game (Hangman in C++), how to avoid nested while-loops? How to stick to the SRP?

Here I already asked for tips, and I wrote another hangman game with the tips I got. My questions are: is int game() doing too many things that I should split ...
1
vote
2answers
142 views

A first Hangman game in C++

I wonder whether I included too many libraries; also can you point out obvious beginner mistakes? Is the while loop the best for what I intend, or is there a ...
4
votes
2answers
184 views

Messy Hangman Game

As it is now the end of my semester for my programming class, we had a final test were we were supposed to make a short hangman game. I have since added some small improvements, such as showing the ...
1
vote
1answer
69 views

Hangman Game Python

I have recently made a hangman game using python. This is the main bulk of the code, however, there are other files that I have writen that get the words from a dictionary, or see if a word repeats ...
1
vote
1answer
70 views

Hangman game in beginning Java

Hangman game coded in Java (at a beginner's level) where Hangman.java can be run with one or more arguments. Hangman.java: ...
2
votes
2answers
102 views

Single player Hangman in Python

This program is yet to become user-friendly and is still in development, but I wanted to improve the current code. ...
2
votes
1answer
83 views

Object oriented hangman game

I'm a hobbist trying to become a professional software developer. I do have a lot interest in Data Science in general and my goal is to master Python before diging deeper into specific data science ...
1
vote
1answer
90 views

Hangman Game using python3

Summary I made a hangman game using python but I had trouble writing clean pythonic code Questions In the code snippet I provided (Full code in the link below) I used global for: loop and points ...
5
votes
1answer
120 views

Python 3.6 Hangman game with .format graphics

This is my Python 3.6+ version of the Hangman game, with graphics generated with print and .format. I've never written code ...
10
votes
1answer
878 views

My first Hangman game in Python

This is my first game and I'm really proud of it, but I think it's horribly messy. Is there any way to improve it? ...
9
votes
3answers
473 views

Hangman Game (YAHG)

I’m in the process of learning C++ and this was an assignment for a class. It is a simple hangman game. The instructor gives no feedback, only a pass/fail remark. While this works, I would like to ...
6
votes
1answer
241 views

CLI Hangman game in C++

Well this is a basic hangman game in c++ without the classy man getting hanged animation (life is printed instead) ...
28
votes
5answers
6k views

A first “Hangman” game in Python

I am new to Python (it's my first language), been coding for a couple of weeks now. I have already made a couple of simple scripts to download and manipulate some financial data, but lately I thought ...
3
votes
1answer
138 views

Very simple Hangman game, with a Swing GUI added

I have just started learning basic Java. I would like to know what I can do to improve my coding habits in Java and how to code more efficiently. In this code example, I took code from Very simple ...
3
votes
1answer
66 views

Hangman program in Python

I am fairly new to coding and decided to test my skills and make a program from scratch on my own. I chose to make a Hangman game, it's pretty straight forward. The code reads a file consisting of ~40,...
3
votes
2answers
71 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 ...
3
votes
2answers
75 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
199 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. ...
4
votes
1answer
201 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
807 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
126 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
2k 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 ...
16
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: ...
2
votes
1answer
120 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
135 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
3k 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
179 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
184 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
577 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
176 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
930 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
169 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. ...