Playing Dots and Boxes in Python with AI. You play the game against artificial intelligence with the option to choose the board size. You can also choose different plys (how deep the search algorithm goes into the search tree). AI uses two methods of Min-Max and Alpha-Beta Pruning to defeat you.