ThorPy

A GUI library for pygame

Examples - NinArow

This simple game implements the so called four in a row - or connect-four - board game ( http://en.wikipedia.org/wiki/Connect_Four). Players can be human or bots. Many parameters can be chosen by user : board size, number of connections to win, bot level, and common aesthetical parameters. The artificial intelligence is a probabilistic AI, though a branch-and-bound like has been implemented, giving poor results compared to probabilistic.

The game consists in pure python script and assume you already have pygame and thorpy installed on your machine. To play, just run play.py script, as indicated in the README file. The game is avalaible for downloading here. The standalone version (do not need thorpy to be installed, but still needs pygame) can be found here.