One way to do it is to detect when all non-bomb cells have been opened, which is a total of `width * height - num_bombs` open cells. This would then change the game state to a "victory screen" which we can be customized by the ports.
One way to do it is to detect when all non-bomb cells have been opened, which is a total of
width * height - num_bombsopen cells.This would then change the game state to a "victory screen" which we can be customized by the ports.