New Game Source Code: Four in a Row

I've made a Connect Four AI. There is a text-only version and a graphical version made with Pygame. You will need Python 3 (not Python 2) to play the games (and Pygame for the graphical version.)

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

Source Code and image files zipped.

fourinarow.py (text version, doesn't need Pygame)

gFourinarow.py (graphical version, needs image files)

Black token image, Red token image, Board image

4 thoughts on “New Game Source Code: Four in a Row

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>