Pseudo Code: Here is my big waste of time

//Welcome to the BullCow Word game
// explain the rules
// Print “Please press “Enter””

// HealthCheck(Health)
//if(Health <= 0)
// Print (Death msg)
// Game()
//else
//check each letter of the input against HiddenWord
//Print “number of bulls” << “number of cows”

// BullCowGame()
//Set the hidden word
//Check hidden word
//Give player word length

//FString PlayerGuess(request from player)
//if(PlayerGuess == HiddenWord)
//Print(“you win”)
//Health++
//BullCowGame
//else
//HealthCheck(–Health)

//Game()
//Print “do you want to play”
//Print “yes/no answer only”
//FString Play?(Player input)
//if (Play? == yes )
//int PlayerHealth(5)
//Healthcheck(PlayerHealth)
//BullCowGame
//else if (Play? == no)
// say goodbye and close game
//else
//Print “yes/no answer only”

2 Likes

Why do you say it is a big waste of time?

I dont see a waste of time here… :face_with_raised_eyebrow:

Looks like you do have a plan for what to do :+1:t4:

Pseudo code really isn’t a waste of time! Throwing yourself straight into coding without detailing out the
design of your program step by step is a recipe for disaster! The course hasn’t covered this yet, but without designing the program and really thinking about it logically - without coding - you’ll never pick up all those edge cases that can break a program.

Privacy & Terms