def zero
import minebender-game@1.0.0.0/LAWS.bend as LAWSimport Base
import minebender-game@1.0.0.0/types.bend as T
200# A zero: a safe cell of the board with no adjacent mine.
201def zero(+w: Nat, +h: Nat, +layout: T.Grid(Bool), +p: T.Pos) -> Bool:
202 on_board(w, h, p) && Bool.not(mine(layout, p))
203 && Nat.is_eq(adj_mines(w, h, layout, p), 0n)