The Invent with Python Blog

Fri 10 June 2011

New Game Source Code: Four in a Row

Posted by Al Sweigart in pygame   

I've made a Connect Four AI.You will need Python 3 (not Python 2) to play the games and Pygame.

In the graphical version, drag the red tokens over the top of the board to make a move.

Source Code and image files zipped.