Repository navigation
Conversation
Planning artifacts only: proposal, delta specs (program-preprocessor, unit-program, default-army, web-interface), design and tasks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CfYiehKYL7qwh1zNnCvrW1
…ewrites Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CfYiehKYL7qwh1zNnCvrW1
…aults A program's text is expanded before it is checked, priced and run: #define (object- and function-like), #undef, #ifdef/#ifndef/#else/#endif, #error, ## pasting and #include of the one built-in header, <unit.h>, which names the directions, the map's answers, every sensor's registers and a handful of one-for-one helpers. A \ continuation gives one line per body line, @labels are private to each use, and every refusal, listing and trace names the source line (and the macro it came through). Macros cost nothing; a line costs what it expands to. The hunter, explorer, vanguard and warden are rewritten with the header, named registers and named subroutines so that they read as a description of what the unit does. Doctrine tests pin each program on hand-built boards; the stock game they play is identical, turn for turn, to the one the old programs played, and five arena games (281-285) are written up in matches/RESULTS-READABLE-PROGRAMS.md. Listings (CLI, API, armoury) show a macro line's expansion beneath it; the tariff publishes the headers; the guide gains a Macros chapter whose examples are parsed by a test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CfYiehKYL7qwh1zNnCvrW1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CfYiehKYL7qwh1zNnCvrW1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CfYiehKYL7qwh1zNnCvrW1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unit programming gets a c style preprocessor.