removed magic numbers from EscapeBot.java

This commit is contained in:
Illia Soloviov 2024-01-23 00:16:30 +01:00
parent d041826164
commit 4c20806d7e

View File

@ -33,7 +33,7 @@ public class EscapeBot extends Bot{
}
private char goToRocket(View view) {
int rowDifference = findRocketRow(view) - 2;
int rowDifference = findRocketRow(view) - (view.width / 2);
return rowDifference < 0 ? '^' : '<';
}