Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 1.16 KB

README.md

File metadata and controls

42 lines (33 loc) · 1.16 KB

Kebabo AI: Connect X project for the algorithm course of University of Bologna in 2022/2023

Lorenzo Peronese, Omar Ayache

Overview

This project implements an algorithm for the Connect X game, a generalized version of Connect 4. The game interface, CXGame, was provided by our professors, while we developed the AI that evaluates the game board state and determines the optimal move.

For more detailed information, please refer to the PDF report available in the release section of this repository (language: italian).

Usage

Run this commands in the root directory.

The execution commands expect the following parameters: 1 (or 1 and 2 if is CvsC), board, reps and timeout. The first (or first two) parameters are mandatory, while the others have default values (board="6 7 4", reps="1", timeout="10").

Build from source

make build

Graphical interface

  • Human vs Computer
make HvsC 1=Kebabo
  • Computer vs Computer
make CvsC board="20 20 10" 1=Kebabo 2=L0

Command line test

  • Output score only:
make test 1=Kebabo 2=L0 reps=10 timeout=15
  • Verbose output
make testv board="7 7 5" 2=Kebabo 1=L0 reps=25