MEPLAT.

Water Jug

Rules

Get the target amount into any jug. The tap and the drain are unlimited.

Press a jug's number or click it to select it, then F fills it and E empties it.

Select a jug and then another one to pour until the first is empty or the second is full.

Fewer moves score more; the optimal count is shown after each solve. New skips for no credit.

Difficulty goes from two small jugs and 2 to 4 moves up to three jugs and targets needing 8 or more moves.

Examples

1. Jugs 3 and 5, measure 2
Fill 5, pour into 3: 2 moves

2. Jugs 3 and 5, measure 4
6 moves at best

3. Jugs 2 and 4, measure 3
Impossible, never dealt

Time (min/sec):