Jug-Puzzle Simulator & Solver: Achieve the target volume using Jug A and Jug B.
How it works: This grid maps all possible water levels. The axes represent the volumes in Jug A and Jug B. The ball's path simulates pouring water: bouncing off a boundary means a jug was just filled or emptied. The simulation stops when the ball hits a coordinate matching your target volume.
Adjust the parameters below. The grid updates dynamically. Click a starting node on the canvas to simulate a solution.
State: Awaiting Start Node
Speed: Slow
Parameters:
- Jug A Volume: 5
- Jug B Volume: 3
- Target Volume: 4
Controls:
- [UP] / [DOWN] : Select Parameter
- [LEFT] / [RIGHT] : Adjust Value
- [S] : Toggle Simulation Speed
- [R] : Reset Program
- Click : Start from Node
Solution Path (Bounces):
Awaiting simulation...