Jump to content
Sign in to follow this  
  • entries
    375
  • comments
    1136
  • views
    298480

community service

Sign in to follow this  
superpig

121 views

I frequently spend time in #gamedev helping out anyone and everyone who stops by. This can, at times, include the complete newbies... I have fond recollections of spending an hour chatting to a guy whose mind was blown when we explained to him that he'd have to write code to do the bloodsplats on the walls in his FPS himself, and that the computer wouldn't just do them for him. Good times.

Anyway, there was another newbie in today, and I tried to sort him out with some 'big picture' concepts. Here's a flowchart I drew up for Hangman - it's missing a couple of bits, but hey. You journal people like pictures, right?

Sign in to follow this  


6 Comments


Recommended Comments

You're missing flow direction arrows. Without them, it isn't always clear how the logic works (unless of course you've spent enough time programming to figure out things in reverse, in which case flow charts are a total waste of time).

Nice other than that, though.

Share this comment


Link to comment
Quote:
Original post by ApochPiQ
You're missing flow direction arrows. Without them, it isn't always clear how the logic works (unless of course you've spent enough time programming to figure out things in reverse, in which case flow charts are a total waste of time).

Nice other than that, though.


I can tell it's too early in the morning because I tried to figure out how displaying what the user has guessed so far could return 'yes' or 'no'.

Share this comment


Link to comment
just started a course on c++ an have drawn up this code ofr hangman. any good ??




PSUEDOCODE FOR HANGMAN


Begin
Get user name for player one
Get user name for player two
Player one to enter secret word
Output on screen underscores to denote number of letters in word
Repeat
Player two to guess a letter
If letter in word
Show letter in place of the underscore
Repeat if more of the same letters are in the word
Else show part of gallows
Until Word guessed or gallows complete

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!