Game-Connect-Four


Welcome to connect Four game development repository! Connect Four is a game in which the players choose a color and then take turns dropping colored tokens into a m-row, n-column vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own tokens. It is therefore a type of m,n,k-game (m,n,4) with restricted piece placement. Connect Four is a solved game. The first player can always win by playing the right moves.

Getting started


Connect Four is a python based project. It is solely developed using only python programming language. A Python Integrated Development Enviroment should be installed to execute the program. You will also need to install numpy, pygame, sys and math packages on your command line.

To install the packages, run the below commands on your command line:

Windows:

     py -m pip install numpy
     py -m pip install pygame
     py -m pip install sys
     py -m pip install math

Unix/macOS:

        python3 -m pip install numpy
        python3 -m pip install pygame
        python3 -m pip install sys
        python3 -m pip install math