Game.custom: def of minebender-game@1.0.0.0 Import: import minebender-game@1.0.0.0/game.bend as Game Lines 100-103 of minebender-game@1.0.0.0/game.bend: https://jend.leeeet.dev/read.txt?path=minebender-game@1.0.0.0/game.bend&start_line=100&end_line=103 import Base import minebender-game@1.0.0.0/types.bend as T def custom(w: Nat, h: Nat, m: Nat) -> T.Setup: +cw = clamp(9n, 30n, w) +ch = clamp(9n, 25n, h) T.Setup{cw, ch, Nat.min(clamp(10n, 999n, m), Nat.sub(Nat.mul(cw, ch), 10n))} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.min https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/game.bend&name=clamp https://jend.leeeet.dev/definition.txt?path=minebender-game@1.0.0.0/types.bend&name=Setup