Console based "Vier gewinnt".
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.ruby-version
Gemfile
README.rdoc
Rakefile

README.rdoc

Connect four

Console based “Vier gewinnt”.

Game play

$ connect_four

playerx> 2

12345678
........
........
........
........
........
........
..xoox..
.xxoox x

playero> 4

12345678
........
........
........
........
........
...o....
..xoox..
.xxoox x

Test driven development (TDD) with minitest

rake test

Setup

Fork from github.com/neopoly/connect_four

git clone git@github.com:YOURNAME/connect_four.git
cd connect_four
# mit rvm:
# ruby -v         # -> 2.2.3
bundle
rake

Environnment

Ruby

ruby-2.2.3

Ruby version manager (rvm)

rvm install ruby-2.2.3
rvm use 2.2.3
ruby -v # => 2.2.3

Gems

bundler # Gemfile
rake    # Rakefile
minitest