Skip to content

Latest commit

 

History

History
 
 

Connect Four

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Connect Four

Aim

The main aim of the project is to create a 'Connect Four' game using the python's PyGame library.

Purpose

The purpose of this project is to give the user a gaming experience of playing the original Connect Four game.

Short description of package/script

This is a very basic version of the famous game 'Connect Four' which is a two player 2D game. To play this game we need two players, one players plays with the red dots and the other player plays with the yellow dots. Each player takes turn to drop the dots in the 6x7 grid. The one who connects the four colored dots in either horizontal, vertical or diagonal line together first wins the game.

The project is developed using python3 and python's PyGame library.

Workflow of the Project

  • We have installed and used the 'numpy' module to develop the logic of the game.
  • We have installed and used the 'pygame' module to give graphics to our game.
  • Just run the script through the terminal.

Setup instructions

  • You should have 'numpy' module in your system. If you don't have just install it through the terminal using the following command
    pip install numpy
  • You should have 'pygame' module in your system. If you don't have just install it through the terminal using the following command
    pip install pygame
  • Finally to run this script in the background of your computer, open the terminal and type-in the below mentioned command
    python connect_four.py

Compilation Steps

  • Open the python script code in any of your ide.
  • Follow the above mentioned Setup Instructions.
  • Debug and Run your code

Output

Author(s)

Name of author : Dhruv Mehta