Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fortran hangman

  1. May 6, 2009 #1
    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.
  2. jcsd
  3. May 7, 2009 #2
    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!
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook