def custom
import minebender-game@1.0.0.0/game.bend as Gameimport Base
import minebender-game@1.0.0.0/types.bend as T
100def custom(w: Nat, h: Nat, m: Nat) -> T.Setup:
101 +cw = clamp(9n, 30n, w)
102 +ch = clamp(9n, 25n, h)
103 T.Setup{cw, ch, Nat.min(clamp(10n, 999n, m), Nat.sub(Nat.mul(cw, ch), 10n))}