Connect Four is a classic board game where players take turns trying to create a line of four of their own pieces without being blocked by their opponent. The game ends when one of the two players successfully lines up four of their pieces horizontally, vertically, or diagonally and wins, or in a draw if the 7-column, 6-row grid is filled without either player successfully connecting four.
For more information see the wikipedia page.
Clone this repo: git@github.com:andrewetobin/connect_four.git
CD into project, from root run: gem install colorize
Play game: ruby ./lib/connect_four.rb