@@ -51,13 +51,15 @@ public class RumbleBot extends Bot{ | |||
for (int index : leftIndexes) { | |||
for (char enemy : enemies) { | |||
if (view.data.charAt(index) == enemy) return '<'; | |||
if (view.data.charAt(index) == '>') return 'v'; | |||
else if (view.data.charAt(index) == enemy) return '<'; | |||
} | |||
} | |||
for (int index : rightIndexes) { | |||
for (char enemy : enemies) { | |||
if (view.data.charAt(index) == enemy) return '>'; | |||
if (view.data.charAt(index) == '<') return 'v'; | |||
else if (view.data.charAt(index) == enemy) return '>'; | |||
} | |||
} | |||