This website works better with JavaScript.
Home
Explore
Help
Sign In
soloviovil91400
/
BotsAI
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
removed magic numbers from EscapeBot.java
main
Illia Soloviov
11 months ago
parent
d041826164
commit
4c20806d7e
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
src/EscapeBot.java
+ 1
- 1
src/EscapeBot.java
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 ? '^' : '<';
}
Write
Preview
Loading…
Cancel
Save