Browse Source

removed magic numbers from EscapeBot.java

main
Illia Soloviov 11 months ago
parent
commit
4c20806d7e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/EscapeBot.java

+ 1
- 1
src/EscapeBot.java View File

} }


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…
Cancel
Save