Pseudocode for Bull Cow Game

Hi there. Here is my Pseudo code for the Bull Cow Game. Does it make sense?

Welcome Player
Set up game:
Set the HiddenWord
Set Lives
Prompt player for guess

PseudoCode_BullCowGame

1 Like

Here’s my take. Kind of abstract, not sure if I might be missing something though

    // Check if is an isogram
    // Prompt to guess again
    // Check if is the right number of characters
    // Prompt to guess again
    
    // Remove Life
    
    // Check lives > 0?
    // if yes Guess again
    // Show lives left
    // if lives < 0
    // Message GameOver and Hiddenword
    // Play again y/n
    // If yes, prompt intro and enter to start playing
    // If no, quit game.
    // Exit

@shamysoza I think is not good. This hard to read and understand.

@z.goerbe It’s really good pseudo code! I like it! Clear and understandable.

1 Like

Privacy & Terms