IonicWind Software

IWBasic => Games and Graphics => Topic started by: Andy on February 21, 2021, 12:47:42 AM

Title: Hangman in IWB
Post by: Andy on February 21, 2021, 12:47:42 AM
Hi,

Well this is a new one for me to actually post a game (I don't do many).

A joint effort here...

Brian found this code and converted it to IWB but the compiler was giving an unspecified error, and it would not compile.

So he asked me to have a look.

I got the same error so I basically pulled it to pieces, worked through it, and finally modified the code so that it actually works now.

Just unzip the files to a folder then compile & run hangman2021.iwb

Included is the exe file if you just want to play it.

Enjoy!

Andy.
:)
Title: Re: Hangman in IWB
Post by: DeeCee on February 21, 2021, 03:56:52 PM
Hey Andy,
I seldom use it but do have WINE installed on my Linux system, so I decided to give your game a test spin. Works great and is quite fun! :-)

Question: I noticed a .cba source file included in the zip, so is that something that can actually be used in Creative Basic also?

-Doc-

P.S. - Added imagehangman.png
Title: Re: Hangman in IWB
Post by: Andy on February 22, 2021, 12:28:38 AM
Hi Doc,

Glad you enjoy the game.

Thought Wine would let you play it, it's great for some Windows exe files.

As for the .cba file, looks like it was written in Creative basic (but I could be wrong).

I don't have CB so I can't test the .cba file.

Thanks for the feedback!

Andy.
 :)
Title: Re: Hangman in IWB
Post by: Brian on February 24, 2021, 03:59:09 AM
I don't think Andy will mind me posting his latest version of the Hangman game. Just copy the attached files into your Hangman folder and re-run

It shows letters A to Z; when you type a letter, that letter turns red so you know what letters you have tried right / wrong
You can now (menu option) save a game and exit and later run it again and load it back in to continue
If you guess the word correctly, the man gets released from the gallows!

It came up with a word this morning, 'conniption' and I had to Google it to see what it meant! We could maybe do with a button that goes and checks the meaning of a word on the 'net!

Brian
Title: Re: Hangman in IWB - New final version coming soon
Post by: Andy on March 10, 2021, 12:36:43 AM
I will be posting the new version of the hangman game soon.

I've added in all sorts of things for this final version, so if you like the game please read on...

New:

You can play against the clock two ways
1. To guess a single word
2. See how many words you can get in a given time.

When playing against the clock & seeing how many words you can get I noticed that on rare occasions the same word came up twice, this has been fixed.

Playing against the clock certainly spices up the game!

Points & bonus stars

Every word you get correct you earn a point.
Get a word wrong and you lose a point.
Get to a specified number of points and you get a bonus star.

Bonus stars
When you are stuck on a word, you can press F1 or click on a star to reveal a missing letter - but you lose a star.

Spelling
I've added a UK version of the dictionary because in the UK, we tend to finish words with for example "sed", in the US they tend to be "zed".

You can choose which dictionary the game will use.

Either way, the dictionary is massively increased from 20,000 + words to 84,000 + words.

I have also written a nice easy help file that will come with it.

See attached screen shots.

Thanks,
Andy.
Title: Re: Hangman in IWB
Post by: DeeCee on March 10, 2021, 10:12:02 AM
Cool! Sounds like so fun additions!
Title: Re: Hangman in IWB
Post by: Andy on March 10, 2021, 09:42:39 PM
Thanks Doc!

And it will come with a challenge, Anne (my better half) loves this game, she's good at spelling (unlike me - reading some of my posts will prove that).

She's managed 32 words in 5 minutes (min 10 letters, max 19 letters).

So, when it's posted and people play it, let's see who can beat it!

Andy.
:)