Applied Logic & Computing · Breadboards, CPUs & Automata

Logic, Circuits & Visual Algorithms Forge

Build computing from silicon gates to theoretical machines across 10 interactive forge towers: wireable breadboards (NOR/XNOR/MUX/Adders/DFF), Karnaugh maps, an animated Fetch-Decode-Execute 4-Bit CPU, BFS/Dijkstra/A* pathfinding, sorting & Big-O, live Regex, DFAs, Turing machines, Huffman trees, and Hamming(7,4) error correction.

  • Wireable Gate & DFF Breadboard
  • Animated 4-Bit Micro-CPU
  • BFS / Dijkstra / A* Courtyard
  • DFA, Turing, Huffman & Hamming
Practice Towers
10
Guided Floors
40
Crown Rooms
10
Verification
Live Engine

What You Will Practice

Click pins directly on a lapis-and-gold Painter2D breadboard with a live 2^N clickable truth-table debugger and clocked waveform scope, wrap Gray-code groups around toroidal Karnaugh maps, and watch registers pulse as your 4-bit CPU computes Fibonacci.

Every circuit, pathfinder, state machine, prefix tree, and Hamming parity check runs natively in pure C# with tactile brass-relay and tape-head DSP audio.

  • Boolean logic, universal NAND/NOR gates, adders, multiplexers, and clocked flip-flops
  • Toroidal Gray-code Karnaugh map minimization and 4-bit Fetch-Decode-Execute CPUs
  • Visual BFS/DFS/Dijkstra/A* pathfinding, sorting partitions, and Big-O growth curves
  • ReDoS-safe regular expressions, DFAs, Turing machines, Huffman entropy, and Hamming(7,4)

Course Curriculum (10 Towers · 40 Interactive Floors)

  1. Tower 1

    Tower 1 · Logic Gates & Binary Adders

    Wire glowing lapis breadboards from basic switches through universal NAND, XOR, Half-Adder, and 3-input Full Adder.

    1. Switches, NOT & Guarded AND
    2. De Morgan & Universal NAND
    3. Exclusive-OR (XOR) from Primitives
    4. The Binary Half-Adder
  2. Tower 2

    Boolean Algebra, K-Maps & Decoders

    Minimize Boolean functions on toroidal Karnaugh maps, prove NOR universality, and wire Multiplexers from primitives.

    1. De Morgan & Universal NOR
    2. Karnaugh Maps · Eliminating Variables
    3. Toroidal Wrap-Around Loops
    4. The 2-to-1 Multiplexer (MUX)
  3. Tower 3

    Binary Arithmetic & The ALU

    Chain Half-Adder and Full-Adder ICs into multi-bit ripple adders, build Zero flags and comparators, and wire a selectable ALU.

    1. Controlled Inverter (Two's Complement)
    2. 2-Bit Ripple-Carry Adder (HA + FA)
    3. The CPU Zero Flag (Z)
    4. 2-Bit Magnitude Equality Comparator
  4. Tower 4

    Clocks, Flip-Flops & Memory

    Break free of pure combinational logic with clocked D-Flip-Flops, timing waveforms, frequency dividers, loadable registers, and edge detectors.

    1. The Clocked D-Flip-Flop (1-Tick Delay)
    2. Toggle Flip-Flop (Clock Divider)
    3. 1-Bit Loadable Memory Register
    4. 2-Stage Serial Shift Register
  5. Tower 5

    Inside The CPU · Fetch, Decode & Execute

    Step a real 4-register Micro-CPU cycle-by-cycle: load registers, drive the ALU, loop with JNZ branches, multiply, and compute Fibonacci.

    1. Fetch, Decode & ALU Addition
    2. Bitwise ALU Masking (AND & XOR)
    3. Conditional Branching & Loops (JNZ)
    4. Multiplication by Repeated Addition
  6. Tower 6

    Tower 2 · Visual Graph & Pathfinding

    Step directly as BFS, DFS, Dijkstra, and A* across weighted marble palace grids with live frontier inspection.

    1. BFS Wavefront (FIFO Queue)
    2. DFS & Stack Backtracking
    3. Dijkstra's Weighted Shortest Path
    4. A* Heuristic Intuition (f = g + h)
  7. Tower 7

    Tower 3 · Sorting & Complexity Intuition

    Binary Search halving, Insertion Sort bar swaps, Quicksort pivot partitioning, and Big-O scaling curve mastery.

    1. Binary Search · O(log n) Halving
    2. Insertion Sort & Local Swaps
    3. Quicksort Pivot Partition
    4. Big-O Scaling Curves & Data Structures
  8. Tower 8

    Tower 4 · Live Regex & Pattern Forge

    Hands-on regular expression puzzles with instant Must-Match / Must-Not-Match feedback, quick token pills, and ReDoS timeout safety.

    1. Literals & Character Classes
    2. Quantifiers & Anchors (^ $ + {n})
    3. Alternation & Grouping (a|b)
    4. Word Boundaries & Negated Classes
  9. Tower 9

    Finite Automata & Turing Machines

    Design Deterministic Finite Automata (parity, suffixes, divisibility by 3) and program a live Turing Machine tape head.

    1. DFA · Even Number of 1s (Parity)
    2. DFA · Binary Strings Ending in "01"
    3. DFA · Binary Divisible by 3
    4. Turing Machine · Bitwise Tape Inverter
  10. Tower 10

    Information Theory & Coding

    Approach Shannon's Entropy limit with interactive Huffman prefix trees, and encode/repair cosmic-ray bit flips with Hamming(7,4) Venn circles.

    1. Huffman Prefix Tree · 4 Symbols
    2. Huffman Tree · 5-Symbol Star Telemetry
    3. Hamming(7,4) · Encoding Parity Circles
    4. Hamming(7,4) · Cosmic-Ray Bit Repair

Deterministic Verification & Crown Payoff

Exhaustive 2^N Truth-Table, Clocked Waveform & Automata Verification

Tests every input combination on breadboards, verifies minimal K-map prime implicants, simulates exact CPU cycles, and runs ReDoS-safe regex, DFA, and Turing tape acceptance suites.

Supported inputs: Wireable Breadboard · K-Map Grid · 4-Bit CPU · Graph/DFA/Turing Workbenches

Crown Room payoff: Wire clocked sequential hardware, program state machines, and repair noisy Hamming codewords across 10 Forge Crown challenges.

Practice Logic, Circuits & Algorithms Inside Nousfarer

Land directly on the Logic, Circuits & Visual Algorithms Forge planet inside Nousfarer to climb all 10 interactive towers right in your browser.

Frequently Asked Questions

How does Logic, Circuits & Algorithms verify my work?

Tests every input combination on breadboards, verifies minimal K-map prime implicants, simulates exact CPU cycles, and runs ReDoS-safe regex, DFA, and Turing tape acceptance suites. Every floor runs deterministically in your browser with immediate feedback — no video pausing or guesswork.

How much content is included in Logic, Circuits & Algorithms?

The planet spans 10 progressively richer towers (40 guided floors plus 10 Crown Room capstones), paired with Ship Owl spaced-repetition recall whenever you want to sharpen a tricky concept.

What equipment or setup do I need to play Logic, Circuits & Algorithms?

Everything runs directly inside your browser inside Nousfarer with zero plugins required. Supported inputs: Wireable Breadboard · K-Map Grid · 4-Bit CPU · Graph/DFA/Turing Workbenches.