Skip to content

rayancheca/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect4

This is a simple web-based implementation of the game Connect4.

Files in this repository:

README.md: This is the document you're currently reading. It provides an overview of the project and the files it contains. connect4.css: This file contains the CSS code for the project. It defines the styles used in the Connect4 game interface. It also includes responsive design elements for different screen sizes. connect4.js: This JavaScript file contains the core logic of the Connect4 game. It includes the game mechanics like player moves, win conditions, and the gameplay cycle. index.html: This is the main HTML file for the project. It defines the structure of the webpage where the Connect4 game is displayed. Languages used:

JavaScript HTML CSS How to play:

The game starts with Red's turn. Players click on a column to drop a disc. The disc will be colored either red or yellow depending on the current player's turn. The game checks for a winner after every move. A player wins if they get four discs of their color in a row, either horizontally, vertically, or diagonally. If a player wins, an alert is displayed, and the page is reloaded for a new game. Contributing:

Feel free to fork this repository and make your own changes, or open a pull request to suggest improvements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors