Windows

May 18, 2025 ยท View on GitHub

________/\\\\\\\\\___________________________________________________________________________________________________________/\\\____        
 _____/\\\////////__________________________________________________________________________________________________________/\\\\\____       
  ___/\\\/______________________________________________________________________________________/\\\_______________________/\\\/\\\____      
   __/\\\_________________/\\\\\_____/\\/\\\\\\____/\\/\\\\\\_______/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\\\________________/\\\/\/\\\____     
    _\/\\\_______________/\\\///\\\__\/\\\////\\\__\/\\\////\\\____/\\\/////\\\___/\\\//////__\////\\\////_______________/\\\/__\/\\\____    
     _\//\\\_____________/\\\__\//\\\_\/\\\__\//\\\_\/\\\__\//\\\__/\\\\\\\\\\\___/\\\____________\/\\\_________________/\\\\\\\\\\\\\\\\_   
      __\///\\\__________\//\\\__/\\\__\/\\\___\/\\\_\/\\\___\/\\\_\//\\///////___\//\\\___________\/\\\_/\\____________\///////////\\\//__  
       ____\////\\\\\\\\\__\///\\\\\/___\/\\\___\/\\\_\/\\\___\/\\\__\//\\\\\\\\\\__\///\\\\\\\\____\//\\\\\_______________________\/\\\____ 
        _______\/////////_____\/////_____\///____\///__\///____\///____\//////////_____\////////______\/////________________________\///_____

Console application of Connect 4. It features two player mode and one player mode with easy, moderate, and hard computer levels.

https://github.com/user-attachments/assets/41178811-defe-4713-b19b-b1ea602c0d71

Windows

Clone this repository and run the following command (Note that MSbuild.exe from Visual Studio 2022 must be in the System Environment Path variable):

.\windows_make.bat

Then enter the newly created build directory and execute the script.

cd build
.\Connect_4.bat

Linux

You will need to install the ncurses library if you do not already have it. Run the command below to install it.

sudo apt-get install libncurses5-dev libncursesw5-dev

Simply clone this repository and run the following command:

make all

Then enter the newly created build directory and execute the script.

cd build
./Connect_4.sh

Game Instructions

Pressing 'h' once in the main game loop will display the settings menu where current settings and key bindings can be viewed and changed.