From 7ae8e9cd8115edb95e48d681e00c71351134d051 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Fri, 26 Aug 2011 07:25:10 -0700 Subject: [PATCH] start --- checkers.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 checkers.rb 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