- Download or clone the repo.
npm i
to install dependencies.gulp
to compile the source code and open in browser.
Two player game - aim is to achieve four in a row on a board of 7 x 6. The game was designed to have a 1980's arcade game look and feel. I used fonts from font squirrel to create the pixelated text.
- HTML 5
- SCSS
- JavaScript ES6
- jQuery 3.10
- Gulp
- NPM
- Git & github
The logic to create the win conditions for a horizontal win were more complicated than first envisaged. Initially the code would check for a match in sequential cells but this created the issue of the match being made over different rows. The problem was overcome by adding a row match function and a loop which searched for matches within the matching row.
- Ability to play against the computer
- Make the game scalable