Binary Builder โ Logic Gate Puzzle
A downloadable game
Welcome to the Logic Lab!
In Binary Builder, you're an engineer designing digital logic circuits. Place logic gates on a virtual breadboard, wire them together, and test your creations against truth tables. It's like playing with electronic building blocks—but all in your browser!
๐ง Core Mechanics
๐ข Place Gates
- Drag AND, OR, or NOT gates from the palette
- Snap them to the grid on the breadboard
- Each gate has a delay time (AND: 30ms, OR: 30ms, NOT: 20ms)
๐ Wire Connections
- Click and drag from output ports (yellow) to input ports (blue)
- Right-click on a wire to remove it
- Right-click on a gate to delete it
โก Test Circuits
- Press "TEST CIRCUIT" to check your design
- The simulation computes the output for all input combinations
- Visual feedback shows if your circuit matches the truth table
๐ฏ Gameplay Objectives
Goal: Build a circuit that correctly implements the target logic function
Constraints:
- Match the truth table exactly
- Minimize gate delay (faster = better)
- Use the fewest gates possible
Success Criteria:
- โ All truth table rows match
- โ Total delay โค target delay
- โ Elegant design
๐ Logic Gates
| Gate | Symbol | Function | <span <delay<="" span=""></span> | >span class="">Inputs | Output |
|---|---|---|---|---|---|
| AND | โง | Both inputs = 1 | 30ms | 2 | 1 only if both are 1 |
| OR | โจ | At least one input = 1 | 30ms | 2 | 1 if any input is 1 |
| NOT | ยฌ | Inverts the input | 20ms | 1 | Opposite of input |
๐ฏ Level Progression
| Level | Name | Switches | Target Function | Target Delay |
|---|---|---|---|---|
| 1 | Invert the Signal | A | NOT A | 100ms |
| 2 | Both Must Be True | A, B | A AND B | 100ms |
| 3 | Either One (OR) | A, B | A OR B | 100ms |
| 4 | XOR Challenge | A, B | A XOR B | 100ms |
| 5 | NAND Challenge | A, B | A NAND B | 100ms |
๐๏ธ Controls
| Action | Control |
|---|---|
| Place gate | Drag from palette to breadboard |
| Move gate | Drag gate on breadboard |
| Wire connection | Click & drag from output to input port |
| Remove wire | Right-click on wire |
| Remove gate | Right-click on gate |
| Test circuit | Click "TEST CIRCUIT" |
| Reset board | Click "RESET BOARD" |
| Clear wires | Click "CLEAR WIRES" |
| Navigate levels | Click "PREV" / "NEXT" |
๐จ Visual Design
Breadboard Aesthetic:
- Wood-textured breadboard with grid
- Color-coded components
- Yellow = output ports
- Blue = input ports
- Red = AND gates
- Blue = OR gates
- Purple = NOT gates
Circuit Visualization:
- Smooth bezier curves for wires
- Animated signal flow on test
- Port glow on hover
- Gate delay displayed on each component
๐ Educational Features
Teacher Toolbox:
- Discussion questions about elegant code vs brute force
- Boolean expression activities
- Real-world processor connections
- Core lesson: Code is physical logic
Learning Objectives:
- Understand basic logic gates
- Build Boolean expressions
- Minimize gate delay
- Design efficient circuits
๐งฉ Strategy Tips
โ Beginner Tips:
- Level 1: Just place a NOT gate from A to bulb
- Level 2: Use an AND gate with both inputs from A and B
- Level 3: Use an OR gate with both inputs from A and B
- Level 4: XOR = (A OR B) AND NOT (A AND B)
โ Advanced Strategies:
- Level 4 (XOR):
text
A XOR B = (A AND NOT B) OR (NOT A AND B)
Requires 4 gates minimum
- Level 5 (NAND):
text
A NAND B = NOT (A AND B)
Use an AND gate then a NOT gate
๐ก Real-World Connections
Computer Architecture:
- Processors are built from logic gates
- Gate delay affects processor speed
- Fewer gates = faster circuits
- Optimization is critical in chip design
Career Skills:
- Digital logic design
- Circuit optimization
- Boolean algebra
- Hardware description languages
๐ฅ๏ธ System Requirements
- Platform: Browser (PC/Mac/Linux/Chrome OS)
- Resolution: 1000ร620 (scales responsively)
- Controls: Mouse + Keyboard
- Browser: Modern browsers with Canvas support
| Published | 15 hours ago |
| Status | Released |
| Author | 2d creator |
| Genre | Educational |
| Tags | 2D, Singleplayer |
| AI Disclosure | AI Assisted, Code, Graphics, Sounds, Text |
Download
Download
Binary Builder โ Logic Gate Puzzle.html 35 kB

Leave a comment
Log in with itch.io to leave a comment.