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