def revealed
import minebender-game@1.0.0.0/LAWS.bend as LAWSimport Base
import minebender-game@1.0.0.0/types.bend as T
141# p is a cell of the board that the player can see.
142def revealed(v: T.Knowledge, +p: T.Pos) -> Bool:
143 match v:
144 case T.Knowledge{w, h, n, rows}:
145 on_board(w, h, p) && Bool.not(is_hidden(at(T.Seen, T.Hidden{}, rows, p)))