Skip to content

feat(port): the splice translates Zinogre's ops, splits wide picks, plays turn-then-move pairs - #118

Merged
sp00ktober merged 8 commits into
mainfrom
port/zinogre-splice
Oct 22, 2026
Merged

sp00ktober merged 8 commits into
mainfrom
port/zinogre-splice

Conversation

@sp00ktober

Copy link
Copy Markdown
Contributor

Stacked on #117. The translator learns what Zinogre's brain needs.

  • Ops: switch_query kept on the args the charge helper answers (0 charged, 6 cooldown; [const] CHARGE_QUERY_*) when [brain] charge, else folded to 0; switch_dist, switch_hp (MHP3rd matches pct <= case, MHFU pct < case: each case +1), if_target_side (if_target_in_arc 0 127), switch_global_540 (folded to its one case).
  • Wide randoms: 14-16 live arms split into an outer random over groups of at most 12 and inner ones (P3_SPLIT), weights kept.
  • History: a switch_prev_call after other code gets its note sunk to the read (every other path notes first).
  • List pairs: [brain.pairs] "7,4" = [[1, 2], "own"] plays em75's turn, then the move (Brain.targets).
  • Zinogre (scratch [brain], fatigue and charge): 57 routines, +11 KB, worst run 125 of 999, Built.ok once the slots allow (next PR); without charge 29 routines, +5 KB.

Tests: each row, the split, the sink, list values; with game data, Zinogre's splice.

🤖 Generated with Claude Code

sp00ktober and others added 8 commits October 22, 2026 00:21
…order

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ide and switch_global_540

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…er answers

`[brain] charge` and the CHARGE_QUERY_* constants; any other query is taken as answer 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… inner randoms

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@sp00ktober
sp00ktober changed the base branch from port/brute-own-moves to main October 22, 2026 21:58
@sp00ktober
sp00ktober merged commit 971b37f into main Oct 22, 2026
5 checks passed
@sp00ktober
sp00ktober deleted the port/zinogre-splice branch October 22, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant