def can_flag
import minebender-game@1.0.0.0/game.bend as Gameimport Base
import minebender-game@1.0.0.0/types.bend as T
386def can_flag(g: Game, +p: T.Pos) -> Bool:
387 match g:
388 case Game{w, h, layout, shown, flags, status}:
389 is_playing(status) && unrevealed(w, h, shown, p)