// Arup Guha
// 2/24/2026
// Fruit is a Piece

public class Fruit extends Piece {
	
	private String name;
	private String color;
	private int points;
	
	// Build my fruit!!!
	public Fruit(int x, int y, int dx, int dy, String myName, String myColor, int myPoints) {
		super(x, y, dx, dy); 
		name = myName;
		color = myColor;
		points = myPoints;
	}
	
	// String representation of this Fruit.
	public String toString() {
		return name+" color "+color+" at "+loc+" worth "+points;
	}
	
	// Returns the number of points this Fruit is worth.
	public int getPoints() {
		return points;
	}

}