def can_open
import minebender-game@1.0.0.0/game.bend as Gameimport Base
import minebender-game@1.0.0.0/types.bend as T
280# During play, a hidden cell of the board can be opened.
281def can_open(g: Game, +p: T.Pos) -> Bool:
282 match g:
283 case Game{w, h, layout, shown, flags, status}:
284 is_playing(status) && unrevealed(w, h, shown, p)