Made for SEI33 - Project 1
A classic game of Connect Four made with JavaScript.This app is hosted on Heroku
Try it out here!
- 2-player mode (Alternate between red and yellow ‘chips’)
- Game ends in either a win or draw.
- Win is achieved when either player has positioned 4 ‘chips’ in a vertical / horizontal / diagonal upwards / diagonal downwards stack.
- Draw is achieved when there are no more white cells left on the board.
- Message to indicate current player.
- Alert to indicate game outcome.
- Reset button
- Key challenges
- Concepts applied
- How To Build A Game Of Connect Four With Vanilla JavaScript (https://www.youtube.com/watch?v=Z_IaJQojun8)
- Connect Four Game Checking for Wins JS (https://stackoverflow.com/questions/33181356/connect-four-game-checking-for-wins-js)
- How to addEventListener to table cells (https://stackoverflow.com/questions/46341171/how-to-addeventlistener-to-table-cells)
- How to return the row and column index of a table cell by clicking (https://stackoverflow.com/questions/45656949/how-to-return-the-row-and-column-index-of-a-table-cell-by-clicking)