Привет всем! Подскажите пожалуйста, почему код не проходит проверку? Вывод правильный, в каждой строке по 1 танку, и находится в массиве.
package com.javarush.task.pro.task05.task0529;
import java.util.Arrays;
/*
Галаксианские роботанки (1)
*/
public class Solution {
public static String robotank = "☖";
public static String empty = "_";
public static String hit = "🎯";
public static int width = 30;
public static int height = 10;
public static String[][] field = new String[height][width];
public static void main(String[] args) {
//напишите тут ваш код
for (int a = 0; a<height; a++)
{
int x = (int) (Math.random()*width);
int b = 0;
for (; b<x; b++)
{
field [a][b] = empty;
System.out.print(field[a][b]);
}
field[a][b] = robotank;
System.out.print(field[a][b]);
for (;b<width;b++)
{
field[a][b] = empty;
System.out.print(field[a][b]);
}
System.out.println();
}
}
}