Recently I added the classic Minesweeper game to the homepage of this blog. Some time ago I had the opportunity to develop a small game of my choice as part of a take-home task used to evaluate me as a candidate for a remote job. I ended up choosing the famous Minesweeper, but they asked me to develop it with a server component, so the original project includes both a server and a client.
I won’t go into technical details here, but here’s the original repository: https://github.com/andresgcarmona/minesweeper.
What is interesting here is the floodfill algorithm that allows revealing neighboring tiles from a previously selected cell.