├── README.md └── bullsandcows.png /README.md: -------------------------------------------------------------------------------- 1 | # Python entry task 2 | Entry task to python intermediate course 3 | 4 | Your task is to create a program that would simulate **Bulls and Cows** game. 5 | 6 | ![alt tag](https://raw.githubusercontent.com/engetoacademy/pythontask/master/bullsandcows.png) 7 | 8 | Bulls and Cows 9 | -------------- 10 | 11 | First of all, the computer will generate a 4-digit secret number. The digits must be all different. Then, in turn, the user tries to guess their computer's number. The user inputs a number and the computer responds with the number of matching digits. If the matching digits are in their **right** positions, they are "bulls", if in **different** positions, they are "cows". 12 | 13 | For example, let's say the number is 2017. 14 | A sample interaction might look like this: 15 | 16 | 17 | ``` 18 | Hi there! 19 | I've generated a random 4 digit number for you. 20 | Let's play a bulls and cows game. 21 | Enter a number 22 | >>> 1234 23 | 0 bulls, 2 cows 24 | >>> 6147 25 | 1 bull, 1 cow 26 | >>> 2417 27 | 3 bulls, 0 cows 28 | >>> 2017 29 | Correct, you've guessed the right number in 4 guesses! 30 | That's {amazing, average, not so good, ...} 31 | ``` 32 | 33 | The program 34 | ----------- 35 | 36 | The name of the complete program should be **bullsandcows.py**. 37 | Send your submissions to **tech@engeto.com** and we will evaluate your solution. 38 | 39 | We will let you know 3 days before the course start if you've been accepted. 40 | 41 | Bonus 42 | ----- 43 | 44 | You can extend the functionality of the program as you wish. 45 | 46 | Be creative, everything outside of the basic scope will be appreciated :) 47 | -------------------------------------------------------------------------------- /bullsandcows.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/engetoacademy/pythontask/5de0317a49eaed4c1b02d55ffd13bf3813fcc6ac/bullsandcows.png --------------------------------------------------------------------------------