/connectfour

ConnectFour game

Primary LanguageJavaScript

Demo

https://taismassaro.github.io/connectfour/

Overview

Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.


Project developed at SPICED Academy, July 2019.

Features

  • Settings: possibility to set custom names for the players and choose size of the board (rows: 4-8, columns: 5-10)

  • Visual indication of which player is next and in which column they're adding the piece

  • Top 3 ranking at the end of each game (using localStorage)

  • Users can either play a new game with the same settings or reset the settings at the end of each game

Technologies

HTML, CSS, Javascript, jQuery