def hidden
import minebender-game@1.0.0.0/LAWS.bend as LAWSimport 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))