TASK-052: generate a players:2 oracle corpus family - #40
Merged
Merged
Conversation
Generalize the JS oracle (sim.mjs, canon.mjs's consumers, regen_corpus.mjs and its check script) from single-player to N-player, and commit two new players:2 corpus fixtures alongside the existing 1-player family: one proving the shared single RNG stream (decision-034/docs/rng.md) via a committed trace's decoded anchor bytes, one covering head-to-head mutual elimination. Generalize core/difftest.zig (Tier-B) and core/abitest.zig (Tier-C) from hardcoded player_count == 1 to loop over 1..MAX_PLAYERS, replicating core/abi.zig's playerStatus() canonical-status projection. Bump abitest.zig's scratch buffer to fit a 24x24 two-player board. Remove test_corpus_replay.gd's (Tier-D) stale single-player-only guard now that NeoSnakeWorld is confirmed already player-count-generic underneath. All four test tiers plus task check are green across all 38 committed traces (36 existing + 2 new).
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.
Summary
Test plan
task checkgreen (oracle:verify, core:test, core:difftest — 38 traces/10280 tick lines/223 anchors all match, core:abitest — 7/7, game:test — 123/123 including corpus-replay)TASK-052