Deviopath › Karel

Replant the Field

Hard · Nested Loops

Every square of the field should hold exactly one plant (one ball). Some squares are missing their plant and some have too many.

Fix the whole field so each square ends with exactly one ball. Your code runs in several fields of different sizes.

Next: Flip the Grid