Drag a stick from the pile onto a leak, or tap a leak, to plug it; the beaver brings a new stick every couple of seconds.
Each plug adds pressure to the four logs around it, shown as cracks; a log with three cracks that gets pushed again bursts into a new leak.
Open leaks slowly ease the pressure next to them.
Keep the pond above the red line until the rain timer runs out.
Dam Plug: all 20 dams held, 50 of 60 stars, dam 20 on the fourth try
All 20 dams held: 50 of 60 stars. Dams 1 to 19 held at the first try; dam 20 ran dry three times (twice with our first plug chooser, once with the second) and held on the fourth try with the pond down to 35 %. The plugs came from our own chooser, not the game's test bot; the cursor moved and Space pressed at once, steadier than a person.
Keep the pond up
Drag a stick from the pile onto a leak (or tap a leak; or move the cursor with the arrows and press Space or Enter). The beaver brings a new stick every 1.35 to 1.5 seconds; four to start, six at most.
Each open leak drains the pond and the stream refills it slowly. At 25 % or less the pond runs dry and the dam is lost.
A plug adds one crack to each intact log above, below, left and right; a log with three cracks bursts on the next push into a new leak (BURST!). Open leaks slowly ease the cracks around them.
Hold until the rain: 40 seconds on dam 1, 70 on dam 20. Stars by the lowest pond: 70 % or more three, 50 % or more two, otherwise one.
Dam 1: four sticks in the pile, one log cracked red.
How the plugs were chosen
About ten times a second, with a stick in the pile, the script tried plugging each open leak and played the next seven seconds on paper six times, with leaks it made up itself (the game's own random leaks were not copied), using the game's pressure and burst rules. It plugged the leak that kept the pond highest with the fewest bursts, then waited 0.45 seconds. For the retries on dam 20 the second chooser was also allowed to hold back the last stick when waiting looked better, and waited 0.6 seconds after each plug.
Dams
Wall
Hold (s)
Lowest pond (%)
Bursts
Plugs
1-5
4x4
40-46
90, 98, 83, 87, 81
13, 7, 12, 14, 13
26, 21, 25, 30, 28
6-10
5x4
48-54
64, 86, 77, 79, 81
16, 14, 15, 14, 15
34, 32, 36, 33, 35
11-15
5x5
56-62
83, 74, 53, 49, 77
15, 18, 16, 17, 18
36, 40, 38, 42, 44
16-20
6x5
64-70
70, 56, 63, 38, 35
15, 17, 14, 15, 13
39, 45, 42, 44, 45
Dam 10: six sticks, the pond still at 100 %.
Where the stars went
Dams 1 to 5 and 7 to 12 kept the pond at 74 % or higher: three stars. From dam 13 on, 25 to 30 logs and stronger leaks pushed it down: 53 % on dam 13, 49 % on dam 14, 38 % on dam 19. Dam 20 took four tries; the winning one used 45 plugs, suffered 13 bursts and finished with two sticks unused.
Dam 20, third try (it ran dry later): pond at 54 %, no sticks left.
Plugging by hand
Before plugging, look at the four neighbours: a leak next to a log with three cracks can wait, because plugging it would burst that log. Fix leaks that sit between intact, uncracked logs first. When the pile is empty, keep the cursor on the worst leak so the next stick goes in at once.
Dam 20: THE DAM HELD!, one star, lowest pond 35 %.
Questions
Why did a log burst after I plugged a leak?
Every plug adds a crack to the intact logs beside it, and a log with three cracks bursts on the next push.
When is the dam lost?
When the pond falls to 25 % or less before the rain.