lib/crossyglot/puzzle.rb
# zero indexed x and y coordinates of cell with 0, 0 being the top right
#
# @param [Fixnum] x
# @param [Fixnum] y
# @returns [Cell]
zero indexed x and y coordinates of cell with 0, 0 being the top right
zero indexed x and y coordinates of cell with 0 0 being the top right
def cell_at(x, y)
      if cells && x < width && y < height && x >= 0 && y >= 0
        cells[y * width + x]
      end
    end
def cell_at ( x , y ) if cells && x < width && y < height && x >= 0 && y >= 0 cells [ y * width + x ] end end
zero indexed x and y coordinates of cell with 0, 0 being the top right
zero indexed x and y coordinates of cell with 0 0 being the top right
None
x
y
None