Deviopath › Karel

Flip the Grid

Hard · Nested Loops

Flip every square of the room: where there is a ball, take it away, and where the square is empty, put a ball.

Every square starts with at most one ball. Your code runs in several rooms with different patterns.

Next: Binary Counter