Glitch · Medium CodeFree
Every Change Squeaks
A shy chameleon works backstage, crossing a patchwork floor. Every time it steps onto a new colour, its skin changes with a loud squeak. Find the quietest way across.
Find the fewest squeaks from the start to the exit, and a route that makes them.
The route must be valid and make the fewest squeaks possible.
R C, then R rows of C tiles: a colour letter A–F, or # for a wall.sr sc er ec, the start and the exit tile (row, column, from 1).-1 if the exit cannot be reached.U D L R.R, C ≤ 200; at most 6 colours; start and exit are not walls3 9 BBBBCBBBB B#######B BAACDDAAB 3 1 3 9
2 UURRRRRRRRDD
Sign in to play. It is free.
Sign in