Help with Writing an Interactive Hangman Program

  • Context: Fortran 
  • Thread starter Thread starter kathrynag
  • Start date Start date
  • Tags Tags
    Program Writing
Click For Summary
SUMMARY

The discussion focuses on developing an interactive Hangman program, emphasizing the need for user input or an array-based dictionary of words. Key components include generating a random word, displaying the empty skeleton for the word, and validating user guesses. Participants recommend starting with pseudo-code before moving to actual coding to identify and resolve issues effectively.

PREREQUISITES
  • Understanding of basic programming concepts
  • Familiarity with arrays in programming
  • Knowledge of user input handling
  • Experience with pseudo-code writing
NEXT STEPS
  • Learn about random word selection algorithms
  • Research user input validation techniques
  • Explore array manipulation in your chosen programming language
  • Practice writing pseudo-code for interactive applications
USEFUL FOR

Beginner programmers, educators teaching programming concepts, and anyone interested in creating interactive text-based games.

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.
 
Technology 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!
 

Similar threads

Replies
38
Views
4K
Replies
16
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
5K
Replies
37
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K