lib/reversi/player/base_player.rb
# Places a supplied color's disk on specified position,
# and flips the opponent's disks.
#
# @param x [Integer] the column number
# @param y [Integer] the row number
# @param my_color [Boolean] my color or opponent's color
Places a supplied color's disk on specified position,
and flips the opponent's disks.
Places a supplied color ' s disk on specified position and flips the opponent ' s disks .
def put_disk(x, y, my_color = true)
      @board.push_stack
      color = my_color ? @my_color : @opponent_color
      @board.flip_disks(x, y, color)
    end
def put_disk ( x , y , my_color = true ) @board . push_stack color = my_color ? @my_color : @opponent_color @board . flip_disks ( x , y , color ) end
Places a supplied color's disk on specified position,
and flips the opponent's disks.
Places a supplied color ' s disk on specified position and flips the opponent ' s disks .
x
the column number
the column number
y
the row number
the row number
my_color
my color or opponent's color
my color or opponent ' s color