Hangman!

Today on the 100 days of coding, it’s… Hangman! One of the first videos did a really good job on flowcharts. Might have been one of the best actually. Simple look at how Hangman would work via flow chart.

Great start

What I like most about this course, is the simple step by step in creating these daily challenges. Make baby steps to the goal. So for now, there are three predetermined words, and we are doing a simple letter check at this point. So, it randomly picks one of the three words, then asks for one letter and determines if that letter is in the word being asked, and where it is in the word. That sounds helpful later on..

More progress

Next up, displaying the right letter. Might be important for Hangman eh? So still random word, (Cheating lol seeing what is the word to help troubleshoot). Pick a letter of the word, so I put C for camel, and it displays properly.

Getting closer

So now, we have a while loop to keep the player guessing until they get it correct. A lot of code checking going on with the display. Want to ensure my project is working as intended…

Close

Well… Have all the basic fundamentals down now. However, the user experience isnt all that great. Time, for… Improved UI!

Finished

Imported two files. One that displays all the cool hangman stuff, the other is a massive list of words to randomly pick. Added code to tell you at the end what the word was. Fun exercise. Gets the brain slowly going. Can’t wait for this to ramp up more but baby steps. Know whats wrong with baby steps? Nothing!

--

--

--

Senior Test Lead with Burst QA at Blizzard Entertainment. Helping create the best possible games. Also going full force into Machine Learning!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

PARTNERSHIP ANNOUNCEMENT — VERICHAINS LAB x HEROESTD

How and why creating configurations files in your Data Science projects

Logging with Enums in .NET Core

Insights Of Getting Certified Ethical Hacker Training

Agile at Zomato

How to use Attributed String in SwiftUI?

A Coder’s Perspective On Quarantine

CS 371p Fall 2021: Christopher Lawson

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeremy Pretty

Jeremy Pretty

Senior Test Lead with Burst QA at Blizzard Entertainment. Helping create the best possible games. Also going full force into Machine Learning!

More from Medium

Food Insecurity in Lansing, and the Common Good

Getting Beefed up with Krav Maga

Essays in the Form of Narratives

Allegheny Family Screening Tool — Training for AI Familiarity