Constraint blocks aren’t virtual methods. A differently named constraint in a subclass doesn’t override the base class’s: every block in the inheritance chain is ANDed together, so adding [0:200] on top of [0:50] still leaves [0:50].
constraint_mode(0) switches a named constraint block off, including an inherited one, without touching its declaration: rand_mode() for constraints instead of fields.
Fix the classes below.
RequirementsSo that wide_item’s value can reach above 50
One working answer: brokenbench's own fix for this exercise. Try a few runs first.
What changes, against the code you started with:
docker run --pull always --rm -p 127.0.0.1:8787:8787 ghcr.io/adibis/brokenbench-runnerLooking for a runner on this computer…
The first start downloads about 250 MB; after that it starts in seconds and only downloads again when there's an update. Your code goes to the runner on your computer, not to chipdv.io.