Console implementation of the game Connect Four in C
Four different gamemodes:
- Two player (Player vs Player)
- One player (Player vs Computer)
- Computer Fight (Computer vs Computer)
- Practice (Player vs Player N games)
Computer movements were implemented with of Enhanced AI Technology
The project contains CUnit Test cases. You must install it first.
sudo apt-get install libcunit1 libcunit1-doc libcunit1-dev
cmake -H. -Bbuild [-DCMAKE_BUILD_TYPE=Debug]
make -C build -j
./build/src/main/main
[./build/src/main/utest]
rm -rf build
Or with bash scripts:
./cmake.sh [Debug]
./main.sh
[./test.sh]
./clean.sh
(Give permissions to the script files)
(Commands in "[ ]" are optional)
If you want to run the scripts without "./" you can even add current directory to the PATH:
export PATH="$PATH:."
If the TOKEN "⬤" is wider than your ascii characters, you can replace it with "O" in the board.h header.