/connect4-project

This is a simple Javascript app implementing the game Connect 4

Primary LanguageJavaScript

Connect 4

This is an HTML, Javascript, and CSS version of the game connect for for 2 players

Game Play

First, player 1 and player 2 must choose their colors. The color name must be a vaild css color name and the player 1 and player 2 must choose different colors.

Player 1 and 2 alternate turns. On each turn, a player clicks one of the squares at the top of the grid which will cause a piece to be dropped down the column column below. Play alternates between players until a player gets four of their pieces in a row (horizizontal, vertical, or diagonal) or until the board is filled and the game ends in a tie.