def toggle_other.go
minebender-game@1.0.0.0 · proof_grid.bend:314
import minebender-game@1.0.0.0/proof_grid.bend as ProofGrid
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
314def toggle_other.go(+flags: List<&2, T.Pos>, +p: T.Pos, +q: T.Pos,
315 d: {B.same(p, q) == False{} : Bool}, +c: Bool) ->
316 {B.contains(G.toggle.go(c, flags, p), q) == B.contains(flags, q) : Bool}:
317 match c:
318 case True{}:
319 contains_remove_other(flags, p, q, d)
320 case False{}:
321 %Equal.sym(Bool, B.same(p, q), False{}, d) :
322 {Bool.or(_, B.contains(flags, q)) == B.contains(flags, q) : Bool}
323 {==}