/connect-four

Primary LanguageJavaScript

connect-four

About game

This a two player game which has the following rules:

  1. The game starts with Player 1.

  2. At each step a player can choose one of the following :

    a) A free tile at the lowest row.

    b) A free tile for which the tile just below it has already been taken.

  3. There are predefined winning arrays. If the last four choices of a player matches a winning array, that player wins.

  4. Game is built using simple DOM Manipulation with Javascript.

Setup

  1. Clone the repo using git
  2. Open index.html file in your browser
  3. Play the game

Screenshots

InGame Screens

Winner Screen