SnakeBot reformat
This commit is contained in:
parent
a242381a9d
commit
e408032f5d
@ -72,10 +72,8 @@ public class SnakeBot extends Bot {
|
|||||||
int rightStars = 0;
|
int rightStars = 0;
|
||||||
for (int x = 0; x < size / 2; x++) {
|
for (int x = 0; x < size / 2; x++) {
|
||||||
for (int y = 0; y < size; y++) {
|
for (int y = 0; y < size; y++) {
|
||||||
if (grid[x][y] == '*')
|
if (grid[x][y] == '*') leftStars++;
|
||||||
leftStars++;
|
if (grid[size - x - 1][y] == '*') rightStars++;
|
||||||
if (grid[size - x - 1][y] == '*')
|
|
||||||
rightStars++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user