Connect4 in pure CSS
CSS JavaScript HTML Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
js
sass
.gitignore
README.md
config.rb
index.html
index.jade

README.md

Demo

You can play at http://twogrey.github.io/connect4/

About

This project is a Pure* CSS Connect Four, made with JADE & SASS.

Pure ?

The cake is a lie ! Unfortunately, I have not been able to do it without a litte piece of javascript. I just used JS for one only thing : to know the current turn. I count the numbers of slots checked : if it's odd, the #1 player plays. Its it's even, it's the #2 player's turn.

Otherwise, all the other features of this game are pure CSS : the generation of the grid, the cursor behavior, the victory conditions, etc...

Contact

A question ? alexis.degryse@gmail.com