Flip the Row
Medium · Conditions
Flip every square of the bottom row: if a square has a ball, take it away. If it is empty, put a ball on it.
Use if and else with ballsPresent(). Do not forget the last square, and finish at the end of the row.
Next: Skip a Square