Run the horizon-client parity probes from one binary
81 client examples that harnesses run become modules of examples/probe: harnesses run `probe <name> ...` (or `cargo run --example probe -- <name>`), and the shared helpers (audio_common, hud_fixture, chat_screen_fixture) move with them. The benchmarks and manual tools stay standalone examples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ initial selection as options.txt stores it, and the actions the screen's
|
||||
entries take on a click or key press: select (an incompatible pack only when
|
||||
its confirmation is accepted), unselect, move up, move down. The Java oracle
|
||||
(VanillaPackSelectionOracle) runs vanilla's PackRepository and
|
||||
PackSelectionModel; examples/pack_selection_fixture runs
|
||||
PackSelectionModel; examples/probe/pack_selection_fixture runs
|
||||
horizon_client::packs::SelectionModel, which the game's pack screen uses.
|
||||
After every action both lists, in order, with each entry's canSelect,
|
||||
canUnselect, canMoveUp and canMoveDown, and the selection committed at the
|
||||
@@ -71,8 +71,8 @@ def main():
|
||||
*(PARITY / f'{n}.java' for n in ('ParityData', 'VanillaPackSelectionOracle'))], 'compile-java')
|
||||
run(['java', '-Xmx1G', '-cp', str(classes) + os.pathsep + dependencies, 'dev.horizonlab.parity.VanillaPackSelectionOracle',
|
||||
inputs, build / 'vanilla.jsonl'], 'vanilla')
|
||||
run(['cargo', 'run', '--quiet', '--profile', 'fast', '-p', 'horizon-client', '--example', 'pack_selection_fixture', '--',
|
||||
inputs, build / 'rust.jsonl'], 'rust')
|
||||
run(['cargo', 'run', '--quiet', '--profile', 'fast', '-p', 'horizon-client', '--example', 'probe', '--',
|
||||
'pack_selection_fixture', inputs, build / 'rust.jsonl'], 'rust')
|
||||
vanilla = [json.loads(l) for l in (build / 'vanilla.jsonl').read_text().splitlines()]
|
||||
rust = [json.loads(l) for l in (build / 'rust.jsonl').read_text().splitlines()]
|
||||
assert len(vanilla) == len(rust) == len(chosen)
|
||||
|
||||
Reference in New Issue
Block a user