mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-28 04:04:42 +02:00
Rydder opp i brettet og testene
Overskriver toString metoden i Position for lettere debugging Fjener removeDeadRobotsFromBoard siden den ikke ble brukt rett Flytter repeterende elementer til variabler
This commit is contained in:
@ -34,6 +34,11 @@ public class Position {
|
||||
return yCoordinate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("X: %d, Y: %d", xCoordinate, yCoordinate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj.getClass() != Position.class) {
|
||||
|
Reference in New Issue
Block a user