- Posts: 5
- Thank you received: 7
HANGMAN
4 days 4 hours ago #234
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
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
Please Log in or Create an account to join the conversation.
4 days 3 hours ago - 4 days 3 hours ago #236
by ludojoey
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!
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.
Please Log in or Create an account to join the conversation.
3 days 8 hours ago - 3 days 8 hours ago #240
by cponsard
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 ?
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.
Time to create page: 0.174 seconds