law assist_stuck
import minebender-game@1.0.0.0/LAWS.bend as LAWSimport Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/game.bend as G
476# LAW: "Pressing the assist when stuck reveals a safe cell."
477law assist_stuck:
478 for w: Nat
479 for h: Nat
480 for layout: T.Grid(Bool)
481 for shape: {shaped(Bool, w, h, layout) == True{} : Bool}
482 for g: G.Game
483 for r: Reachable(w, h, layout, g)
484 for playing: {G.status(g) == T.Playing{} : T.Status}
485 for stuck: Stuck(G.knowledge(g))
486 for k: Nat
487 exs p: T.Pos
488 {mine(layout, p) == False{} : Bool} &
489 {hidden(G.knowledge(g), p) == True{} : Bool} &
490 {G.step(g, T.Assist{k}) == G.open(g, p) : G.Game}
Uses (19)
Used by (0)
No other definition uses this definition.