

Currently it is done on the Tile component, with an inner state, but this does not support what we are aiming for. In order to be able to achieve the “zero-opening” we need to change the way we set a tile as “open”. The code can be found in this GitHub repository: Hey! for more content like the one you're about to read check out on Twitter 🍻 SolidJS, TypeScript and some common logic under my belt, I’m ready to dive head first into it! In this case all the empty tiles which are adjacent to it are opened in a recursive manner, until they reach a tile which has a number to it. The “zero opening” is a situation where the player opens an empty tile (a tile with no value to it). It is now time to put some of the game logic into place, and we start with what they call “zero-opening” The tiles are all set, and we can mark or open them. In the previous post I’ve created a Minesweeper game board using SolidJS and a flat array.
