Code Monkey home page Code Monkey logo

connect-4-python's Introduction

Connect-4

Connect 4 is a two-player implementation of the popular Connect 4 game using Python.

The game is played on a 6x7 grid and players take turns dropping their pieces into the columns. The first player to connect four pieces vertically, horizontally, or diagonally wins the game.

Table of Contents

Demo

Current Progress Walkthrough


Progress 1 Walkthrough


Usage

Clone the repository and run the game using Python. To run the game, you must have Python installed on your computer. Once Python is installed, you can clone the repository and run the following commands in your terminal.

The game will prompt players to select a column to drop their pieces into. The game continues until one player wins or the board is filled.

git clone https://github.com/kabirdhillon7/connect4.git
cd connect4
python connect4.py

Playing the Game

The game is played by two players, who take turns dropping their pieces into a vertical board. The goal of the game is to connect four pieces of your own color vertically, horizontally, or diagonally.

To drop a piece into the board, the player must enter the column number they want to drop their piece into. The piece will fall to the lowest available slot in that column.

The game ends when one player connects four pieces in a row, or the board is full with no winner.

Files

The following is a list of files in the repository:

  • connect4.py: The main game file containing all the logic for the Connect 4 game.

Dependencies

The following packages are required to run this project:

Contact

If you have any questions or feedback, you can reach me through the following channels:

connect-4-python's People

Contributors

kabirdhillon7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.