Mirror Lake winter classic · Snowmere Skating Club
S your start (it is ice). ice: you keep sliding# rock: you stop on the tile before it* snow patch: you stop on itH the warm-up hut: you stop on it, that's the goalA move is U, D, L or R (up = north = row-1).
You slide in that direction until a rock or the lake edge is in front of you, or you enter a snow patch
or the hut. Send the moves as one string, e.g. "RDLU".
It must be a shortest route to the hut (any shortest route is fine).
"grid": a list of row strings, north row first."rle": each row is run-length encoded. A count in front of a tile repeats it,
no count means 1. "3.#2*H" = "...#**H"."survey": an object with rows, cols,
start, hut and lists rocks, snow. Every position is
[row, col], 0-based from the north-west corner. Every other tile is ice.Finish all 100 maps inside 120 seconds and the club secretary hands you the trophy code.
POST /api/start
-> {"round":1, "format":"grid", "map":[...],
"token":"...", "seconds_left":120, ...}
POST /api/answer {"token":"...", "moves":"RDLU"}
correct -> the next round (same shape),
after round 100 -> {"flag": "..."}
wrong -> {"ok": false, "error": "..."}
(start again)
curl -s -X POST https://$HOST/api/start curl -s -X POST https://$HOST/api/answer \ -H 'Content-Type: application/json' \ -d '{"token":"...","moves":"RD"}'
Tip: the ice has no mercy for humans. Bring a script.