#!/usr/bin/ruby class Board def initialize() @board = Array.new(8) {|i| Array.new(8, '_')} end def to_s() str = '' @board.each {|row| row.each {|cell| str += cell } str += "\n" } return str end end b = Board.new() puts b.to_s