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

GateSymbolFunction<span <delay<="" span=""></span>>span class="">InputsOutput
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

LevelNameSwitchesTarget FunctionTarget 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

ActionControl
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
StatusReleased
Author2d creator
GenreEducational
Tags2D, Singleplayer
AI DisclosureAI 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.