23 lines
437 B
Java
23 lines
437 B
Java
package dev.kske.chess.board;
|
|
|
|
/**
|
|
* Project: <strong>Chess</strong><br>
|
|
* File: <strong>Position.java</strong><br>
|
|
* Created: <strong>02.07.2019</strong><br>
|
|
* Author: <strong>Kai S. K. Engelbart</strong>
|
|
*/
|
|
public class Position {
|
|
|
|
public final int x, y;
|
|
|
|
public Position(int x, int y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return String.format("[%d, %d]", x, y);
|
|
}
|
|
}
|