lib/tak/board.rb
# Checks which color player currently owns a square
#
# @param x [Integer]
# @param y [Integer]
#
# @return [Symbol]
Checks which color player currently owns a square
Checks which color player currently owns a square
def square_owner(x, y)
      return true if @board[x][y].empty?
      @board[x][y].last == 'b' ? :black : :white
    end
def square_owner ( x , y ) return true if @board [ x ] [ y ] . empty? @board [ x ] [ y ] . last == 'b' ? :black : :white end
Checks which color player currently owns a square
Checks which color player currently owns a square
None
Symbol
x
<not_specific>
y
<not_specific>
<not_specific>
None