commit 7ae8e9cd8115edb95e48d681e00c71351134d051 Author: Dan Ballard Date: Fri Aug 26 07:25:10 2011 -0700 start diff --git a/checkers.rb b/checkers.rb new file mode 100644 index 0000000..ad5f52d --- /dev/null +++ b/checkers.rb @@ -0,0 +1,14 @@ +#!/usr/bin/ruby + +class Board + def initialize() + @board = Array.new(8) {|i| Array.new(8, '_')} + end + + def print() + @board.each {|row| @row.each {|cell| print cell } puts "\n"} + end +end + +b = Board.new() +b.print