Skip to content

A game like Wordle such that the letters of a secret word are guessed correctly. The Secret is a 5 letter word. The user can enter n number of his guesses. If a guess has the same letters as the Secret but is not in the same position it is referred to as a bull. If the letter and position both are correctly guessed it is called a cow. For each g…

Notifications You must be signed in to change notification settings

avzz-19/COWS-BULLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

COWS-BULLS

A game like Wordle where the letters of a secret word are to be guessed correctly. The Secret is a 5 letter word. The user can enter 10 guesses maximum. If a guess has the same letter(s) as the Secret but is not in the same position it is referred to as a bull. If the letter and position both are correctly guessed it is called a cow. For each guess you need to print the number of cows(C) and bulls(B). The game ends when the user gets all 5 Cows.

Example Case: Secret="HELLO"; Guess this 5 letter word!

Enter a guess: float 0C,3B

Enter a guess: kills 2C,0B

Enter a guess: house 1C,2B

Enter a guess: heart 2C,0B

Enter a guess: heyya 2C,0B

Enter a guess: hello 5C,0B YAY YOU GUESSED IT!!

About

A game like Wordle such that the letters of a secret word are guessed correctly. The Secret is a 5 letter word. The user can enter n number of his guesses. If a guess has the same letters as the Secret but is not in the same position it is referred to as a bull. If the letter and position both are correctly guessed it is called a cow. For each g…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages