package tictactoe.game.board;

public class TicTacToePoint implements BoardPoint {
    private String value;
    private int xPos;
    private int yPos;

    public TicTacToePoint(int xPos, int yPos) {
        this.value = TicTacToePointValue.EMPTY.value();
        this.setPosition(xPos, yPos);
    }

    @Override
    public void setPosition(int xPos, int yPos) {
        this.xPos = xPos;
        this.yPos = yPos;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int getXPos() {
        return this.xPos;
    }

    @Override
    public int getYPos() {
        return this.yPos;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}

@@ -24,16 +24,43 @@
 board;%0A%0A
+import java.util.Objects;%0A%0A
 public c
@@ -315,32 +315,616 @@
 , yPos);%0A    %7D%0A%0A
+    @Override%0A    public int hashCode() %7B%0A        int result = 1;%0A        result = 31 * result + this.xPos;%0A        result = 31 * result + this.yPos;%0A        result = 31 * result + this.value.hashCode();%0A        return 31 * result;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) %7B%0A            return true;%0A        %7D%0A%0A        if (o != null && o instanceof TicTacToePoint) %7B%0A            TicTacToePoint point = (TicTacToePoint) o;%0A            return this.xPos == point.getXPos() && this.yPos == point.getYPos();%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A
     @Override%0A  

implement equals and hashCode