def hidden

minebender-game@1.0.0.0 · LAWS.bend:135

import minebender-game@1.0.0.0/LAWS.bend as LAWS
import Base
import minebender-game@1.0.0.0/types.bend as T

135# p is a cell of the board that the player cannot see.
136def hidden(v: T.Knowledge, +p: T.Pos) -> Bool:
137  match v:
138    case T.Knowledge{w, h, n, rows}:
139      on_board(w, h, p) && is_hidden(at(T.Seen, T.Hidden{}, rows, p))

Uses (8)

Used by (22)