Fixing minor improvements
This commit is contained in:
@ -7,6 +7,8 @@ import java.awt.Point;
|
||||
public class ScatterToBottomRight implements GhostStrategy {
|
||||
@Override
|
||||
public Point chooseTarget(Ghost ghost, PacMan pacman, GameMap map) {
|
||||
return new Point(map.getHeight() - 1, map.getHeight() - 1);
|
||||
return new Point(
|
||||
map.rowToWorldY(map.rows() - 1),
|
||||
map.colToWorldX(map.columns() - 1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user