def can_flag

minebender-game@1.0.0.0 · game.bend:386

import minebender-game@1.0.0.0/game.bend as Game
import 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)

Uses (6)

Used by (5)