My first pseudo code

Just a basic form of pseudo code…just added some extra lines to make the code a little more clear to read and to follow. Feel free to correct me if I’m wrong at any point.

//welcome message    

//start by getting hidden word

    //include lives
        //show number of lives

    //prompt for guess
 

    //checking input guess

    //check for isogram
    //check for number of charcaters

    // if guess correct then win

    //if guess wrong loose life

    //check for 0 lives
        //if 0 then show word and print fail
        //if more than 0 
            //show no. of lives left
            //prompt to guess

    //prompt to play again
        //if yes then game plays again
        //if no then quit the game.
1 Like

Looks like you understand the logic. Good. This is the most important part. If you understand this you will be set.

1 Like

Privacy & Terms