Help with Writing an Interactive Hangman Program

  • Context: Fortran 
  • Thread starter Thread starter kathrynag
  • Start date Start date
  • Tags Tags
    Program Writing
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
kathrynag
Messages
595
Reaction score
0
I'm looking for major help on writing an interactive program to run hangman. It can be user inputted or using an array. I just don't know what to do.
 
Physics news on Phys.org
Is it an interactive program using text only, or graphics are required? I assume the former.

If the player plays the computer, then you'd need to create an array of words to represent the dictionary from which you draw words. You will need a random choice of words which will show the empty skeleton. User will guess, and your program will check for validity and display the correct guesses.

I suggest you start with a pseudo-code, and actual coding if possible. You can submit the code and tell us what problems you are encountering.

Good luck!