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

  1. Very nice game, I’m planning to integrate it into a collection of educational games for children, ‘childsplay’ which is licensed under the GPL-3 license. http://sourceforge.net/projects/schoolsplay/
    Can I put chunks of your code under the GPL-3 License ?
    Of course I will send you upgraded images for the game as well as any improvements we perhaps make.

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>