checkers mcts
I wrote checkers from scratch in Python and built two AI agents to play it: a minimax agent that looks a few moves ahead, and a Monte Carlo tree search agent that plays out hundreds of random games to see which move wins most often. With 1,000 simulations per move, MCTS beat a random player in 100 out of 100 games. Against depth-3 minimax it won only 5%, drew 40% and lost 55%. The board here is a smaller MCTS playing live in your browser.