start
This commit is contained in:
commit
7ae8e9cd81
|
@ -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
|
Loading…
Reference in New Issue