lib/tak/board.rb
# Places a piece at a given move coordinate
#
# @param move [Tak::Move]
# @param color [Symbol]
#
# @return [Boolean]
#   Success of placement
Places a piece at a given move coordinate
Places a piece at a given move coordinate
def place_piece(move, color)
      square = pieces_at(*move.origin)
      return false unless square.empty? && @piece_sets[color].remove(move.piece_type)
      square.push(move.piece)
      true
    end
def place_piece ( move , color ) square = pieces_at ( * move . origin ) return false unless square . empty? && @piece_sets [ color ] . remove ( move . piece_type ) square . push ( move . piece ) true end
Places a piece at a given move coordinate
Places a piece at a given move coordinate
Success of placement
Success of placement
Boolean
move
<not_specific>
color
<not_specific>
<not_specific>
None