def can_open

minebender-game@1.0.0.0 · game.bend:280

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

Uses (6)

Used by (1)