Deviopath › Karel

Fill Two Rows

Medium · Functions

Fill the bottom two rows of the room with balls, one ball on every square.

Write a fillRow function that fills one row from wall to wall, then use it for both rows. After the first row Karel has to go up one square and turn to face the other way. Karel finishes at the left end of row 2.

Next: Around the Room