https://blog.dilawars.me/the-game-of-bulls-and-cows-a-python-implementation/
The game of "Bulls and Cows" : A python implementation