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).
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").
make build
- Human vs Computer
make HvsC 1=Kebabo
- Computer vs Computer
make CvsC board="20 20 10" 1=Kebabo 2=L0
- 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