Skip to content
Snippets Groups Projects
Commit db75d796 authored by CHERCHEM Sarah's avatar CHERCHEM Sarah
Browse files

Position : add the method isAtPosition

parent d097fe15
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
package util; package util;
public record Position(int row, int column) { public record Position(int row, int column) {
public boolean isAtPosition(Position position) {
return row == position.row() && column == position.column();
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment