Exercise
Try to solve the problem using the top-down approach.
We'll cover the following
Try to solve a similar puzzle that involves moving items with specific constraints to enhance your problem-solving skills.
Task
The objective of the puzzle is to switch the positions of all the rabbits so that all three white rabbits are on the right and all three brown rabbits are on the left. When all the rabbits have reached the other side, you win!
-
Click a rabbit to make it jump forward.
-
A rabbit can jump a maximum of two spaces, and the destination spot must be free.
-
White rabbits can only hop to the right. Brown rabbits can only hop to the left.
-
Rabbits can only jump onto an empty rock. A rabbit can jump over one rabbit to an empty rock—but only over one.
-
Rabbits cannot jump back, only forward. It’s easy to tell which direction they can go—they face the direction they want to jump.
If you get stuck and your rabbits can’t jump anywhere, press the “Reset” button to reset the game.
If you’re unsure how to do this, click the “Show Hint” button.
Get hands-on with 1400+ tech skills courses.