The other day, while making some changes in the Crystal formatter tool, I learned about heredoc and how to use multiple heredocs as methods' arguments.
Let's write some puzzle solvers. This time - Minesweeper Puzzle.
Minesweeper puzzle differs from the Minesweeper game in that a bunch of mine hints are provided from the start. In the game you start with the empty board, and get hints revealed as game goes.