Как бы я не старался идёт только 1 солдат. Помогите пожалуйста.
weary
September 5, 2020, 10:11am
2
Пожалуйста, разместите свой код, как ссылка, размещенная ниже.
Formatting your code before posting code is essential to our community, and if you don’t we might not be able to help Everyone must know how to format ALL of your code properly. It’s really easy and only requires a very small amount of effort.
[Screen Shot 2020-04-04 at 11.55.07]
To post your code from the game , use the </> button or it won’t format properly. When you click the </> button, the following will appear:
[Screen Shot 2020-04-04 at 11.55.36]
Please paste ALL …
jka2706
September 5, 2020, 11:14am
3
Вставить:
while soldierIndex < soldiers.length:
вместо того
while soldierIndex == 0
Также вам нужно
soldierIndex += 1
Извините, не смотрел, в этой части горы еще не проходился “for”? Просто с ним все было бы гораздо проще… Если нет, попробуйте то что сказал @jka2706 . Мне кажется, он хотел сказать:
Нужно написать while soldierIndex < soldiers.length:
вместо
while soldierIndex == 0
Также нужно написать:
soldierIndex += 1
Вы прошли уровень,@Timofey_K ?