Git Product home page Git Product logo

connect-4-in-c's Introduction

Connect 4 game

The final project on programming in C, CSED level 1 - first semester

Example on connect four of 7 x 6 board

1. Game Description

  • Connect 4 is a two-player game in which the players first chooses a color and then takes turns dropping their colored discs from the top into a grid. The pieces fall straight down, occupying the next available space within the column. The objective of the game is to connect-four of one’s own discs of the same color next to each other vertically, horizontally, or diagonally. The two players keep playing until the board if full. The winner is the player having greater numberof connected-fours. You can read on wikipedia.

2. Overview

  • The goal of the game is to connect connect-four discs of the same color next to each othervertically, horizontally, or diagonally as you can. The board may be of any size. Each player is assigned a random different color.Scoreis calculated based on the number of connected fours. The game ends when the board is full. The winner is the player with the highest score.The map is a two dimensional grid where it has no discs at all. Each player can select a column to drop a disc and the players should connect four discs to win.

3. In order to play the game

  • Download the .zip file extension connect4.zip.

  • Or type in terminal (after you download and setup git):

      $ git clone https://github.com/AndrewSafwat1/connect4_game.git
    

4. Configuration file is the settings for changing the display of the game

  • You can customize the number of rows and columns you want by changing the value between height and width tags respectively!
  • You can also customize the number of ranks that appear in top scores by changing the value between highscores tags.

Created by:

  • Mahmoud Abdelghany
  • Andrew Safwat

connect-4-in-c's People

Contributors

andrewsafwat1 avatar mahmoud1512 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.