
public class Chess {
    Location nowLoc;
    Integer color;
    Integer step;

    public Chess(Integer color){
        this.setColor(color);
    }

    public void setNowLoc(){

    }

    public Location getNowLoc(){
        return new Location(this.nowLoc);
    }

    public void setColor(Integer color){
        this.color = color;
    }

    public Integer getColor(){
        return this.color;
    }

    public void setStep(){

    }

    public Integer getStep(){
        return this.step;
    }

}

class Location{
    Integer x, y;

    public Location(Integer x, Integer y){
        this.x = new Integer(x);
        this.y = new Integer(y);
    }

    public Location(Location loc){
        this.x = loc.getX();
        this.y = loc.getY();
    }

    public Integer getX(){
        return this.x;
    }

    public Integer getY(){
        return this.y;
    }
}

class ChessFactory{
    public Chess makeChess(Integer color){
        return new Chess(color);
    }
}
@@ -869,16 +869,129 @@
 ;%0A    %7D%0A
+%0A%0A    @Override%0A    public String toString()%7B%0A        return %22(%22 + this.getX() + %22, %22 + this.getY() + %22)%22;%0A    %7D%0A
 %7D%0A%0Aclass
@@ -1079,17 +1079,18 @@
 s(color);%0A    %7D%0A
+%0A
 %7D

Add loc toString