removed magic numbers from EscapeBot.java
This commit is contained in:
parent
d041826164
commit
4c20806d7e
@ -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 ? '^' : '<';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user