Skip to content

Files

Latest commit

3c46357 · Nov 4, 2021

History

History

BullsAndCows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 4, 2021
Nov 4, 2021
Nov 4, 2021

Bulls and Cows with AI

AB Guess is a game to guess 4 digits with bulls and cows. the rule is here.

I build an AI program with MonteC Carlo tree search. I test the program 100 times, it takes an average of 4.52 steps to guess the number.

You can run

./game.py --game_num=5 

to compete with AI. Players with less step will win (I can't beat my AI😂). Good luck and have fun!