This is a sample game that is called Bulls-Cows. The anwer is radom 4 digits numbers that aren't repeat. You can try to answer the question with fewer times.
Python 3.5.2
import random
import re
git clone https://github.com/dada79119/Bulls-Cows.git
python3 guess.py