This repository has been archived on 2021-02-18. You can view files and clone it, but cannot push or open issues or pull requests.
2019-07-06 18:05:00 +02:00
|
|
|
package dev.kske.chess.board;
|
2019-07-02 20:07:47 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
2019-07-05 14:14:48 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return String.format("[%d, %d]", x, y);
|
|
|
|
}
|
2019-07-02 20:07:47 +02:00
|
|
|
}
|