Skip to content

petrgabrlik/BullsAndCows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bulls and Cows game

Simple and old numerical game where a player is trying to guess unknown 4-digit number.

Solution to this task https://github.com/engetoacademy/pythontask

Sample game

Hi there!
Let's play a bulls and cows game.
I've generated a random 4-digit number for you.
Guess that number
1234
0 bulls, 1 cow
7638
0 bulls, 2 cows
6387
2 bulls, 0 cows
6353
Numbers must not be repeated.
6354
2 bulls, 1 cow
635
Too short. Please enter 4-digit integer.
6350
2 bulls, 2 cows
6305
Correct, you've guessed the right number in 6 guesses!
That's really good.
Do you want to play again? (Y/N) n
Thank you for playing! Bye bye.

Releases

No releases published

Packages

No packages published

Languages