/Connect-4-using-react

This project is a browser-based implementation of the classic Connect-4 game built using React. Connect-4 is a two-player game where players take turns dropping colored discs into a grid. The objective is to connect four of one's own discs of the same color vertically, horizontally, or diagonally before the opponent does.

Primary LanguageJavaScript

Connect-4 Game

This project is a browser-based implementation of the classic Connect-4 game built using React. Connect-4 is a two-player game where players take turns dropping colored discs into a grid. The objective is to connect four of one's own discs of the same color vertically, horizontally, or diagonally before the opponent does.

Features:

Two-Player Gameplay: Play against a friend locally in a 4x4 grid. AI Suggestion: Get suggestions for the next best move using a minimax algorithm with alpha-beta pruning. Responsive Design: Enjoy the game on various devices, thanks to its responsive design. New Game: Start a new game once the current game ends.

Technologies Used:

React JavaScript HTML5 CSS3

Deployment:

The project is deployed on Netlify, a free hosting platform for static projects.

Play the Game ("https://srajan-connect-4-react.netlify.app/")

Feel free to contribute or provide feedback by opening an issue or pull request!

Output

g1

g2

g3