Created
January 12, 2013 04:28
-
-
Save kmandreza/4516100 to your computer and use it in GitHub Desktop.
Using pseudocode, write a simple hangman game. The point of pseudocode is to represent the logical structureof a program without getting bogged down in the syntax of a particular language. For example, a program to select the largest integer from an array of integers might be written like this in pseudocode initialize max_so_far to the first ele…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate a word at random and store it in a variable | |
# display the length of the word to the user | |
# correct_guesses is less than the length of the word | |
# prompt the user to guess a letter | |
# if the guess is correct increment correct_guesses by 1 | |
# if the guess is incorrect increment incorrect_guesses by 1 | |
# and draw the next part of the hangman | |
# if the incorrect_guesses is greater than 8, tell the user | |
# they lost and exit the program | |
# if correct_guesses is equal to the length of the word, tell the user they won |
Your all wastemans!!!! SUCKERS
but where do i find the code? i want to know how it is done...
can someone help me with these:
Detailed pseudocode for your Game:
Detailed pseudocode includes the names of all functions, all program paths, and intended variable names
I should be able to understand how you intend to write your whole program from the pseudocode
Must be neat and formatted
simple, straightforward :)
Awesome! I have something along these lines however I am developing for two players.
How to
In pseudocode, how to write the random function in a words bank which contains 1000 words to randomly collect anyone word?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect, precisely what I needed :)