A "Connect Four" game in a classic 6 x 7 board or grid, built using JS, HTML table, a little bit of CSS, and a mixture of Luck. :)
Reference: https://en.wikipedia.org/wiki/Connect_Four
-
Either player should be able to win by making 4 in a row in a vertical, horizontal or diagonal (either direction) pattern.
-
The winner should be immediately announced once there is one, and no moves can be taken after.
-
It should be possible to reach a draw state. A draw state is when there is no possible move left for either player and there is no winner.
-
It should not falsely and/or prematurely declare a player as a winner or a draw.
clone the repository
git clone https://github.com/jediscript/connect-four.git
Open the <DIRECTORY_PATH>/connect-four/connect-four.html in your browser.
https://fierce-cliffs-19683.herokuapp.com/
- AI or "Vs Computer mode"