HANGMAN

More
4 days 4 hours ago #234 by cponsard
HANGMAN was created by cponsard
Hi all 

I am sharing the next step in my discovery of micro-8 coding: a simple hangman

featuring:
- string manipulation (coding for hidding chars, looking for char, computing output string,...) using pointers, probably the most interesting part
- displaying some basic graphics
code is commented

workaround: I could not mix variable length words
cannot trace the reason but I ended encoding on 10 chars with space stuffing at the end
you can easily update array in the initial dict array (take care at the above constraint)

enjoy feedback welcome !
christophe
 
The following user(s) said Thank You: Franck, David, ludojoey, garrettx

Please Log in or Create an account to join the conversation.

More
4 days 3 hours ago - 4 days 3 hours ago #236 by ludojoey
Replied by ludojoey on topic HANGMAN
Nice work!

Just made 2/3 modifications to avoid the space filling in the dict array.

Also add mdSeed function call.

And change the selection of the word to guess (rnd function with size of the dict array).

It seems working, but you must check!
Last edit: 4 days 3 hours ago by ludojoey.
The following user(s) said Thank You: cponsard, garrettx

Please Log in or Create an account to join the conversation.

More
3 days 8 hours ago - 3 days 8 hours ago #240 by cponsard
Replied by cponsard on topic HANGMAN
Checking this, busy today with a BASIC port of PI computing on an older Belgian micro-computer, the DAI ;-)

Note: what about pushing shared example/demo code on a github ?
 
Last edit: 3 days 8 hours ago by cponsard.
The following user(s) said Thank You: ludojoey

Please Log in or Create an account to join the conversation.

More
3 days 7 hours ago - 3 days 7 hours ago #241 by ludojoey
Replied by ludojoey on topic HANGMAN
[deleted]
Last edit: 3 days 7 hours ago by ludojoey.

Please Log in or Create an account to join the conversation.

Time to create page: 0.174 seconds
Powered by Kunena Forum