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?
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?
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?
Previous Entry
urgh
Next Entry
Modding MC2
Comments
MustEatYemen
BattleStar Hangman!!!
August 01, 2006 07:58 PM
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.
Nice other than that, though.
August 01, 2006 11:30 PM
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'.
August 02, 2006 03:43 AM
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
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
November 10, 2006 10:52 AM
Advertisement
Latest Entries
members.gamedev.net
2577 views
GDNet Slim
1975 views
Activity streams
1640 views
V5: User accounts and profiles
2008 views
V5: What I've been working on recently
2401 views
Service process account install gotcha
1672 views
V5: Fun with MSBuild
2230 views
V5: Continuous Integration and Deployment
1707 views
V5 Guts: Text Sanitizer
1779 views
Wheeee
1497 views
Advertisement