Skip to content

CONNECT FOUR LAB - DOCUMENTATION

Connect Four Lab is a platform to test AI algorithms in the connect four game.

The game

The game engine runs a 7x7 board which is a more competitive version than the classic 7x6 board.

Repository

Repository on GitHub

Getting Started

To see a guide on where to start go to Getting Started

Requirements

Structure

The project is divided in two main packages 'game' and 'app'. The game package contains all the necessary modules to run a game (game engine, agents, models, helpers, etc). The app package is an user interface made in Kivy, in it you can run games see all turns being played, play yourself agains an Agent or train a new model.

Agents

In Connect Four Lab each AI algorithm is called Agent.

List of available agents:

  • Negamax - about
  • Simulation - about
  • Monte Carlo Tree Search - about
  • Monte Carlo Tree Search with Neural Network - about

This project use other authorial projects:

  • Timer - Powerful python timer with useful functions (Decorator, callback, contextmanager) and easy to use. see on Github
  • Custom Widgets for Kivy - see on Github

License

This project is licensed under the MIT License - see the LICENSE file for details

Dependencies