Source

puzzle_nodes / 13 / lib / piece / pawn.rb

Full commit
class Piece::Pawn
 attr_reader :color, :location

  def initialize color, location, board
    @color, @location, @board = color, location, board
    
  end

  # Returns an array with the path from location to destination or an empty
  # array if none exists.
  def move destination
  end

  # returns an array of valid destinations for this piece's move.
  def destinations
    
  end
end