Undefined Behavior
A game in early forge — for players and the curious, not an engineers-only demo.
Wishlist + screens when ready
Try the idea
Free browser workbench — place gates, Direct45 wires, High / Low / Undefined. Build small mechanisms; the 1-Bit Adder is one example.
Learn by building
Four soft challenges from the early path of the game. Pick one in the workbench, follow the steps, then invent your own.
01
First Signal
Get a lamp to follow a button — wire the path.
- INPUT → LAMP
- No wire = no signal (gray)
- Place INPUT and LAMP.
- Drag from the INPUT OUT port to the LAMP IN.
- Click INPUT to toggle High / Low — the wire and lamp should match.
Gray means undefined: nothing is connected yet. That is the product name, not an error.
02
Invert It
Flip the signal with a NOT gate.
- OUT = NOT IN
- Lamp lights when INPUT is Low
- Place INPUT, NOT, and LAMP.
- Wire INPUT → NOT → LAMP.
- Toggle INPUT: lamp should be the opposite.
If any gate input is unconnected (gray), the whole chain stays undefined.
03
Control Line
Pass a signal only when Enable is High.
- OUT = A ∧ Enable
- Fan-out: one OUT can feed many INs
- Place two INPUTs (call one Enable), one AND, one LAMP.
- Wire both INPUTs into AND (two IN ports), then AND → LAMP.
- Toggle Enable: signal only reaches the lamp when Enable is High.
From one OUT you can pull several wires — needed later for the adder.
04
1-Bit Adder
Example mechanism: add two bits — Sum and Carry.
- Sum = A ⊕ B
- Carry = A ∧ B
- Place two INPUTs (A, B), XOR, AND, and two LAMPs.
- Fan-out: wire A to both XOR and AND; same for B.
- XOR → Sum lamp, AND → Carry lamp. Double-click lamps to label Sum / Carry.
- Try 00, 01, 10, 11 — Sum is “odd one High”, Carry is “both High”.
This is one device you can build — not homework. The game is about mechanisms from gates.
In the forge
Undefined Behavior is a pre-alpha game from Carlo Forge. Build digital mechanisms from primitive logic gates. The one-liner, stills, and wishlist land when the craft is ready to show.
Screens (coming)
Frames hold the layout until real stills land. No store or wishlist link yet.
- Frame
- Frame
- Frame