Oh no!
The bugs and the worms are trapped on one side of the river. Luckily, there's a leaf floating there that can carry them. Help them get home!
But be careful:
- 1. The leaf can't carry more than 4 grams at a time, otherwise it will sink.
- 2. A worm weighs 4 grams and a bug weighs 2 grams.
- 3. Don't leave the leaf alone: If you try to move it when no one is sitting on it, it will float away with the river.
- 4. Remember, there are a lot of ways to do it but there is always a best way!
- 5. To win the game, you have to bring all the bugs and worms from here : to here : .
Instructions:
- 1. You can load the bugs/worms on the leaf by dragging them on top of it. To unload just click on the leaf.
- 2. Afterwards you can move the leaf by the arrow buttons below it.
- 3. The arrow buttons can also unload the bugs/worms.
Can you get them all safely to the other bank? Simply drag and drop the worms and bugs onto the leaf to move them.
Good luck! 😎
What's behind it all?
To get the bugs and worms home safely, you have to get them across the river in a certain order. To achieve your goal, you therefore proceed in defined, individual steps. Nothing else happens with an algorithm. In computer science, an algorithm is a type of specification that tells a computer program how to proceed in order to solve a problem. The program then works through all the steps until the goal is reached. To get all the animals to the other side of the river, you develop your own algorithm. Once you have found it, you can use it to get the bugs and worms across the river again and again. And just like computer programs, there are different algorithms, better and worse, faster and slower, to cross the river.