Bulls-and-Cows-Solver Performance Digits: 3, Number Set: [1, 2, 3, 4, 5, 6, 7, 8, 9] Average Try Count: 4.73 Maximum Try Count: 6 Total Number Count: 504 (9 x 8 x 7) Win Statistics: [1 Try Win: 1], [2 Try Win: 6], [3 Try Win: 27], [4 Try Win: 117], [5 Try Win: 296], [6 Try Win: 57] Digits: 4, Number Set: [1, 2, 3, 4, 5, 6, 7, 8, 9] Average Try Count: 4.97 Maximum Try Count: 7 Total Number Count: 3024 (9 x 8 x 7 x 6) Win Statistics: [1 Try Win: 1], [2 Try Win: 2], [3 Try Win: 62], [4 Try Win: 613], [5 Try Win: 1700], [6 Try Win: 635], [7 Try Win: 11] Digits: 4, Number Set: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] Average Try Count: 5.21 Maximum Try Count: 7 Total Number Count: 4536 (9 x 9 x 8 x 7) Win Statistics: [1 Try Win: 1], [2 Try Win: 4], [3 Try Win: 59], [4 Try Win: 544], [5 Try Win: 2320], [6 Try Win: 1568], [7 Try Win: 40] Word This game is known as "Baseball game" in Korea So word changed "Bulls" => "Strikes", "Cows" => "Balls" Default Rule The game play with 3 digits and digits uses on [1, 2, 3, 4, 5, 6, 7, 8, 9] This rule is editable. using the CONFIG variables. Python codes This python code works in Python 2.7 Tank you.