Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Hangman Game Struggles

Author
Message
MacMan
14
Years of Service
User Offline
Joined: 9th Apr 2012
Location:
Posted: 12th Apr 2012 00:59
Hey guys I am having some trouble getting my code organized and completed for my hangman project. I got some criticism from my instructor on my code and I'm confused on what I am missing. Here is what he said.

You have some major organization problems...

All variables and variable arrays should be declared in the variable declaration section.

Values are assigned in the assignment of value section

and finally in game processing you should have the title call, the gallows call, and the if statement to display the appropriate number of spaces. -3

You also have a gitem and a gitem$ -1

if li = 5 is not necessary because if it is not 3 or 4, it has to be 5. -1

You really need to go over the pseudo code and flow chart for this assignment. They lay the program out as it needs to be organized. make sure you correct these mistake before next week.

I have attached the pseudo code with this post as well to take a look at if you would like. I am also going to post up my code so far as well. I am very new at this so I am not sure where to go with this. If you could lend me a hand and point me in the right direction that would be great. Thanks

My code
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 12th Apr 2012 03:47 Edited at: 12th Apr 2012 03:49
This look's like it conforms to your instructors design document, but don’t grade me on it.

MacMan
14
Years of Service
User Offline
Joined: 9th Apr 2012
Location:
Posted: 13th Apr 2012 06:50
Thanks for the help WickedX. Would you be able to help me with this next part as well? Here's what I need to do next.

We now need to do the following:

Request input from the user. (Input a letter)
Validate the letter input by the user.
Display valid letters in the appropriate spaces on the screen.
When all letters of word are displayed, display "You Win!!!" or some other congratulatory message.
Request another letter from the user.

Login to post a reply

Server time is: 2026-07-09 17:20:09
Your offset time is: 2026-07-09 17:20:09