Giter VIP home page Giter VIP logo

connect-four's Introduction

Connect Four Game

Connect Four is a popular two-player connection game in which the players choose a color and take turns dropping colored discs from the top into a grid. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's discs.

Prerequisites

Before you start working with this project, ensure that you have the following software installed:

  • Node.js: Make sure you have Node.js installed on your system. You can download it from nodejs.org.

  • Angular CLI: Install Angular CLI globally using the following command:

npm install -g @angular/cli
 
 
## Getting Started
Clone the Repository:

Clone the project repository from GitHub using the following command:
git clone https://github.com/malekhizaoui/Connect-Four.git


Navigate to the Project Directory:

Change your working directory to the project's root folder:
cd connect-four


Install Dependencies:

Install the project's dependencies using npm:

npm install


## Development Server
To start a development server for the project, run the following command:

npm start
The application will be accessible at http://localhost:4200/ in your web browser. The development server will automatically reload if you make any changes to the source files.


Usage
To play the Connect Four game, follow these steps:

Open your web browser and navigate to http://localhost:4200/.

The game board will be displayed, and you can start playing by clicking on the cells in the grid.

Players take turns dropping their colored discs (red or yellow) into the grid.

The game will determine a winner when a player forms a line of four of their discs horizontally, vertically, or diagonally, or if there is a draw when there are no more moves left.



Contributing
If you would like to contribute to this project, please follow these steps:

Fork the project on GitHub.

Create a new branch for your feature or bug fix.

Make your changes and commit them with clear and concise messages.

Push your changes to your fork on GitHub.

Create a pull request to submit your changes for review.

connect-four's People

Contributors

malekhizaoui 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.