Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 713 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 713 Bytes

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!!