Commit Graph

13 Commits

Author SHA1 Message Date
Fabian @ Blax Software 596dc6827e BF memory: a newer save brings its own bits, bits reach the account when you leave, room for them
A project that comes in with the same circuit open (a newer save from
another computer, a savegame restored in place, a shared link opened
again) now runs from the bits it brings. Before, the running circuit
went on with this computer's old bits and wrote them over the newer ones
at the next save, and a savegame could not undo Power off and on.

Bits changed only by buttons or a clock are sent to the account when the
page is hidden or closed, when you leave the project, and before signing
out, so they are no longer lost by "remove from this browser" and reach
the other computer. A running clock alone still sends nothing. Bits alone
keep the project's save time, so an edit saved on another computer wins
over them and they end up in its savegames.

What circuits hold has its own room of 500 KB per project on top of the
2 MB limit, in the browser, the account and share links. When it is full,
the circuits left longest ago start from 0; a circuit that holds more than
that on its own says so once. A project can no longer become too large to
load because of its memory.

A savegame opened as a copy saves the project it leaves first, like every
other way of switching projects.

Tests now run the editor itself (in a stand-in browser with an account
server) for going into components and back, reloads, two projects, other
computers, savegames, signing out and the room limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:44:43 +01:00
Fabian @ Blax Software e55bd47310 A memory that stays: circuits keep their bits across visits and saves; Power off and on
What latches, flip-flops, registers and RAM built from NANDs hold is no
longer lost when you go into a component and come back, reload the page or
open the project on another computer. Leaving a circuit puts its bits in
the project, and opening it starts from them.

Only the gates on feedback loops can hold a bit, so only those that are 1
are kept, plus the clocks that are high: each node id once, each gate as
the path levels it shares with the gate before plus the rest. 1,024
flip-flops take about 30 KB. Restoring runs the gates in the order signals
flow, so the gates in front of a latch are right before it reads them;
gates that no longer exist after an edit are ignored.

The bits go with every save, file, share link and account upload. Between
saves (a clock running, a button pressed) they are put in this browser's
copy every 30 seconds and when the page is left, without counting as a
change: no sync, savegame or undo step of their own, and never over a save
made in another tab. Projects without them start from all zeros as before.

"Power off and on" in the menu on the circuit's name, or with Space,
starts the open circuit again from all zeros.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:09:18 +01:00
Fabian @ Blax Software ad8f6897e0 A latch parts onto each other: pins touching, no wires, moving together
A part whose pins line up one for one with the pins it is wired to can
sit straight on them, like a display on a CPU's outputs or a switch on a
component's input. Drag it close (green rings show where) or choose
Latch onto in its menu or settings. It then moves with that part; drag it
away or Unlatch to let go. Parts whose shared pins already touch latch by
themselves, the smaller onto the larger. A pin that would touch another
without a wire keeps it from latching. A clamp marks the joint.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-23 15:34:36 +02:00
Fabian @ Blax Software 8de4a81678 A connector types of your own: HDMI, RJ45 or any bus, with out and in ports and one cable that carries every line both ways
- A project keeps connector types: a name, a colour and lines that run
  out -> in or back. Made, edited and deleted (once unused) from the
  parts list's new Connectors group and a connector dialog.
- "<type> out" and "<type> in" ports: inside a component a pin per line
  on the inner side plus a cable pin to pass the whole cable on to a
  part inside; on the component's box one port, coloured like its type.
- One cable joins an out port to an in port of the same type; the
  compiler joins line by line, forward and back, at every depth. Ports
  of different types never join; mismatched cables are pruned.
- Pins can face the other way (the inner pins of ports); the router
  takes them out and in from the side they face.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:59:56 +02:00
Fabian @ Blax Software 9411527c5d A main menu: free play, campaign, challenges and leaderboard over a circuit that builds itself
Logigate opens on a title screen. Continue, Free play (your own projects),
Campaign (progress and what is next), Challenges (every challenge and the
puzzle of the week in one Challenges project), Leaderboard (the best ten of
this and earlier weeks, your place, your records), Settings. Arrow keys,
Enter and Esc work through it; links still open straight into the editor.
Players can name themselves on the leaderboards. The logo in the editor
leads back to the menu.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 12:22:35 +02:00
Fabian @ Blax Software 794acad140 A finer component boxes, a regrouped parts list with keyboard search, a real green for wires and cables
- Box designer: drag pins up or down to open gaps between groups; size (+/−) and turn (R) lamps, displays, screens and drawings; pixels belong to named screens, each placed on its own; displays of the components inside can be shown on the box (off unless ticked); a list of everything the box can show, each optional; the box grows to hold what it shows
- Lamps and displays deep inside placed components light up on the box
- Parts list: one search box for parts and components (letters in order match too), recently placed parts first, grouped Logic / Inputs / Outputs / Wiring / Notes, then components by group; groups fold away
- Keys: / searches the parts list (Enter starts placing), Shift+A or Ctrl+K adds a part at the mouse
- Wires and cables get a green; the default swatch shows grey, as the default really is

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 06:48:42 +02:00
Fabian @ Blax Software deb94b9d61 BF input panels are component inputs, cable ends plug in more reliably; A merge panels, hex pass-through, design a component's box
- Inside a component, the switch and button rows of its input panels are now input pins (in order with the other inputs, named after the rows); "Rows are component inputs" can be turned off per panel to keep the old fixed switches
- Select input panels, Merge: one panel with all rows, spacing and wires kept; circuits that place this one keep their wires
- Cable ends plug in more often: bundling orders the wires by the part a side runs to, an end with only some wires on a part still plugs, an end placed by hand next to the pins plugs, and dragging an end near its part shows green rings and plugs it on drop
- Hex displays pass their four bits on (outputs on the right), so they can sit in the middle of a bus
- Design the box: move lamps, displays, the screen and the name on a component's box, draw lines, boxes, circles and text in six colours, size it, leave things off; every placed copy shows it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 13:49:29 +02:00
Fabian @ Blax Software 5663685505 A compact tidy wiring, pass-through lamps and outputs, gates with up to 16 inputs
- Tidy wiring orders all wires entering one column together and lays
  them out as one compact staircase a grid step apart, sliding only
  within that gap to avoid running along other signals. Separate
  bundles into the same part no longer cross each other.
- Lamps and output pins get a pin on the right that carries the same
  signal on; labels move above when it is wired.
- AND, OR, XOR, NAND and NOR (built in, examples or your own, detected
  from the truth table) take 2 to 16 inputs. The wide version is a
  balanced tree of the two-input gate, so transistors count honestly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:09:23 +02:00
Fabian @ Blax Software 2edb458372 A campaign with unlocks, synthesised sound, puzzles and the puzzle of the week
- Campaign projects start with NAND only; challenges open along a
  dependency chain, each solution becomes a usable part, and basic parts
  unlock on the way. Locked parts and challenges say what opens them.
- Sound effects made with Web Audio: place, connect, switches, buttons,
  delete, clock ticks (opt-in), solve, fail, unlock, record. Mute and
  volume in the top bar and Display settings.
- Publish any circuit as a puzzle link; only its behaviour is shared.
  The server re-runs the checks on submitted solutions, counts their
  transistors and keeps each player's best; the board shows a histogram
  and your place. A generated puzzle of the week for everyone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:54:57 +02:00
Fabian @ Blax Software 9754ecc0b4 A transistor counts and records, cables, pixels and screens
- Every component shows its transistors (CMOS, 4 per NAND, at every
  depth) in the palette, its settings and the stats. Challenges keep
  the fewest transistors of a passing solution and announce new records.
- Cables: bundle and split parts carry 2 to 32 wires as one thick cable
  with a width mark; "Bundle into cable" builds one from selected wires,
  "Remove cable" takes it apart. Cable ends only join cable ends.
- Pixel part; pixels inside a component show on its box as one screen
  without gaps. New examples: Screen 4x4 and Demo: Screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:29:16 +02:00
Fabian @ Blax Software 861b161c8b A input panels, automatic names, one-by-one wiring, tidy routing, truth table export
- Input panel part: rows of switches, buttons and clocks. "Attach input
  panel" docks one to a component with a row per free input; it moves
  with the component and follows its pins.
- Copies and new pins continue name series (D0 -> D1, A -> B); unnamed
  switches, lamps and pins take the name of the component pin they are
  wired to.
- Connecting: target pins are ringed, dropping on a part uses its next
  free pin, click-then-click works, and "Connect one by one" (W) wires a
  selection's pins in turn.
- Tidy wiring option and "Tidy all wires": sorted, evenly spaced columns
  per gap, one trunk per signal, fewer crossings.
- Truth table full screen, CSV download, copy as Markdown, current row
  highlighted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 19:17:25 +02:00
Fabian @ Blax Software 5e17826ba5 A settings for every part, overlap-free wiring with crossing styles, accounts with sync
- Clicking anything opens its settings: swap parts in place (wires stay on
  matching pins), clock frequency per clock, keyboard keys for switches and
  buttons, lamp/display colours, note sizes, component names on the canvas,
  position, unlink all wires, unpack a component, make an independent copy.
- Wires of different signals never share a line: auto routes pick free
  columns or detours, remaining clashes go on separate lanes. Crossings drawn
  as bow, triangle, bridge, gap or plain.
- Accounts (email + scrypt password, httpOnly session) with two-way project
  sync and conflict copies; per-account limits; cross-site writes refused.
- Compatibility suite: a project and both browser-storage layouts from
  release a241adc must load and compute identically.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 13:09:37 +02:00
Fabian @ Blax Software a241adc94e A component faces, project library with share links, fine-grained wire editing
- Lamps and hex displays inside a component show on its box with their
  labels, lit by that instance's state; Counter 4 example shows its count.
- Several projects per browser; share links at /p/<id> that the creator's
  edits save to automatically, others get their own copy. Export, open a
  file as project, or add a file's components to the open project.
- Wires: drag any segment or corner, Alt+drag for a new bend, Ctrl+drag to
  branch, double-click selects the whole signal, multi-select, arrow keys,
  colour tags.
- Share-link API (POST/GET/PUT /api/p) on Nitro fs storage in data/, mounted
  as a volume on edgerealm.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-17 13:21:49 +02:00