Skip to content
← Back to Community
Hangman
Profile icon
Roar123

Back and Better than Ever

I know you guys have probably seen a lot of Hangman programs - it is a very common coding challenge. In fact when I started learning Python, I made a Hangman program with the help of a tutorial. Even though the tutorial did most all of the heavy-lifting and the program was very basic, I was enthralled with possibilities of programming.

Fast forward to a couple weeks ago. I wanted to revisit this challenge but this time I would program it from scratch and try to add as many advanced features as I could. It was difficult at times and I experimented with things I had never done before such as creating a flask server, but I was able to pull it off. I present to you . . . . . .

Screenshot 2020-03-28 at 12.48.09 PM

Pretty cool right! Wait till you explore the interface - it'll blow you away! Oh and since I should be a model citizen who cites their sources, I used an online ASCII art generator for the "Hangman". Check it out here. Let's move onto the features now!

Features

  • Beautiful color interface with custom slowprint function
  • Stringent guess criteria
  • Accurate guess evaluation
  • Webscraped list of 500 words
  • Live leaderboard
  • Custom commands
  • Help documentation
  • There's a 'Hangman'

What else could you want!

How to play

To learn how to play hangman, I recommend reading the rules and commands, found in the help section of the program. To make gameplay and functionality more streamlined, check out these commands below!

/home - Directs to home screen
/help - Helpful information and commands
/play - Play Hangman
/leaderboard - Directs to leaderboard
/restart - Refreshes current page
/quit - Quits program

Everytime you see '>>>', you will have the option to enter commands.

Game Example

Screenshot 2020-03-28 at 1.10.34 PM

Leaderboard

If you submit your score, your username and score will show up on the leaderboard and everyone can see it. Please pick appropriate usernames as this is a friendly programming community. Good luck and go for that 1st place spot on the leaderboard!

Leaderboard Update 3/28/20: Congratulations to @MrEconomical and @DJWang for holding the top spots on the leaderboard and scoring a 6, the incredibly difficult highest possible score!
Congrats also to @iterate for joining the elite 6 club!
Stay tuned as there may be a possibility to score more than 6 points in future updates!

Screenshot 2020-03-28 at 4.12.03 PM

Leaderboard Load Update: Due to the sheer amount of entries on the leaderboard, it now displays 15 results with the option to load 10 more. The way it loads is very efficient - check it out!

More

On top of creating a complex, beautiful hangman game, there's a webscraper to generate the word list and a flask server to host the leaderboard. Check them out below!
https://repl.it/@Roar123/Hangman-Webscraper
https://repl.it/@Roar123/Hangman-Server

Thanks for checking this out!

Voters
Profile icon
TravisRaney
Profile icon
AndrewZhao1
Profile icon
ArtemPionov
Profile icon
catherinebish
Profile icon
JamieLawrence
Profile icon
Epicmuffinepic
Profile icon
messiah21
Profile icon
BlueComet
Profile icon
Viaticboss19
Profile icon
Wilke000
Comments
hotnewtop
Profile icon
MrEconomical

master of python terminal games is back at it with another amazing project. better than I could ever do!

Profile icon
Roar123

@MrEconomical Thanks a lot!

Profile icon
Roar123

@MrEconomical How did you get a 6, the highest possible score??? What a legend!

Profile icon
AtticusKuhn

@Roar123 He probably cheated.

Profile icon
Roar123
Profile icon
SimonSkoglund

really, really good programing:D

Profile icon
Roar123
Profile icon
BlueComet

Screenshot 2020-03-28 at 9.31.47 PM

?????????

Profile icon
CodingCactus

@iterate rythm?

Profile icon
BlueComet

@CodingCactus first of all rhythm is spelled with an h and rhythm would be 6 letters

Profile icon
CodingCactus

@iterate sorry

Profile icon
BlueComet
Profile icon
CodingCactus

@iterate maybe it was crypt?

Profile icon
BlueComet

Great job the leaderboard and the commands were a nice touch to a game like hangman.

Profile icon
TravisRaney

I like this

Profile icon
ArtemPionov

@Roar123 Thank you so much for your text title, If you don't mind I will copy your title(not the game itself) just the title. Thank u, ur the best! I'll use it to make my title. If u want to check it out here's the link

Profile icon
Roar123

@ArtemPionov Sure thing, your "Survival" title looks pretty nice. Just so you know, I used an ASCII art generator for the title, the link's here (more info in the post).

Profile icon
ArtemPionov

@Roar123 Thank you so much. <3

Profile icon
Wilke000

Love it

Profile icon
ArnauB

Nice one!

Profile icon
VulcanWM

THIS IS AMAZING!!!