This commit is contained in:
Dan Ballard 2011-08-26 07:25:10 -07:00
commit 7ae8e9cd81
1 changed files with 14 additions and 0 deletions

14
checkers.rb Normal file
View File

@ -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