The Four Bug Problem is a classic mathematical puzzle that involves four bugs moving simultaneously on a square plane. Each bug moves at a constant speed directly towards the bug in front of it in a clockwise direction. The bugs follow spiral paths as they move, maintaining a rectangular formation that shrinks and rotates.
Watch the animation to see the paths the bugs take
From The Magnet. Programmed using Cursor