Wick Hangman

Another relatively quick project. Just click on the letters to try to guess the word.
wickHangman.wick (12.4 KB)
Version 2: Has more words and method to avoid repeats:
wickHangman2.wick (13.4 KB)
Version 3: Now has a keyboard input option, as well as an option to choose how many tries you want to start with. Just keep in mind that by default, the K key is the shortcut to play/pause a project in the editor, so unless you have set it to something else, pressing the K key while playing will stop the project.
hangman3.wick (25.5 KB)
hangman preview
I intended for this to be really simple. It turned out…a little more complicated than I initially planned? But I’m satisfied with the results, the basic functionality is pretty much what I wanted.

(On a side note, I should be working on other stuff…I will return to art requests and other stuff I’ve been taking too long to finish after this. Sorry about that.)

5 Likes

so fun!!!
:smiley: :grin: :grin:

1 Like

Wow, looks nice :D
Trick: When playing Hangman, always start off with the vowel, “e,” b/c it’s simply used in a lot of words

1 Like

i usually start with rstlne, da common letters. (thanks wheel of fortune.)

2 Likes

Nicely done!

1 Like

i got the same word like 4 out of the 6 games i played, am i just getting bad randomization?

Oof, that’s some luck. I should do something different for that, there’s around 30-40 words and it uses random.choice() to pick one of them. I can probably do something better than random.choice to ensure that the same word doesn’t occur too frequently. Or maybe instead of getting a random word, it could just cycle through all the words. I’ll revise that aspect in the future, along with adding more words

How I would avoid having the player get the same word again:

Method 1:
Add more words so chances of getting the same word decreases

Method 2:
Make it pick an array number that’s higher than the last words array number by a random number that can’t be big enough to pick the same word again

1 Like

Those are both very good suggestions! I’ll definitely add more words, it would be really easy to do and a quick way to make the game more interesting.

1 Like

I just added a newer version to the original post. It has more words (150 total), but I also added a method to avoid repeats. I ended up deciding that (ideally) you would have no repeats until the entire word list was exhausted, so the new version shuffles the array of words (so the order they appear in is random), but then it goes through each one, and just increments through the whole array before shuffling the array again. So you shouldn’t get any repeats until you’ve gone through all 150 words.

1 Like

i think bill wurtz did this

To be honest, I had to Google who this guy is because the name didn’t ring a bell…he’s a YouTuber?

Have you seen his video
history of the world i guess

Oh, I’ve heard of that. Never really watched it though. Is this game similar to his videos? (Not to get too off-topic, I was just curious about what you meant)