law disp_at

minebender-game@1.0.0.0 · proof_display.bend:71

import minebender-game@1.0.0.0/proof_display.bend as ProofDisplay
import Base
import minebender-game@1.0.0.0/types.bend as T
import minebender-game@1.0.0.0/board.bend as B
import minebender-game@1.0.0.0/game.bend as G
import minebender-game@1.0.0.0/LAWS.bend as L

71# On the board, the screen shows what tile_at says.
72law disp_at:
73  for +w: Nat
74  for +h: Nat
75  for +layout: T.Grid(Bool)
76  for +shown: T.Grid(Bool)
77  for +flags: List<&2, T.Pos>
78  for +st: T.Status
79  for +x: Nat
80  for +y: Nat
81  for +on: {B.on_board(w, h, T.Pos{x, y}) == True{} : Bool}
82  {L.tile(G.Game{w, h, layout, shown, flags, st}, T.Pos{x, y}) == G.tile_at(w, h, layout, shown, flags, st, T.Pos{x, y}) : T.Tile}

Uses (24)

Used by (4)