removed magic numbers from EscapeBot.java
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ public class EscapeBot extends Bot{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private char goToRocket(View view) {
|
private char goToRocket(View view) {
|
||||||
int rowDifference = findRocketRow(view) - 2;
|
int rowDifference = findRocketRow(view) - (view.width / 2);
|
||||||
return rowDifference < 0 ? '^' : '<';
|
return rowDifference < 0 ? '^' : '<';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user