Marathon#3
Merged
Merged
Conversation
- Add GfError::IoError and GfError::NoReplayData variants
- Add TurnRecord::actions: Option<Vec<PlayerAction>> for replay path
- Restructure GameCollection from newtype to versioned struct with
gfcore_version, format_version, and games fields
- Add GameCollection::save() and save_to() for timestamped file output
- Add src/history/audit.rs: AuditResult and GameRecord::audit() with
7 structural invariant checks; GameCollection::audit_all()
- Add src/history/replay.rs: ReplayResult and GameRecord::replay()
using stored initial_draw_pile for deterministic re-deal;
GameCollection::replay_all()
- Capture pending_turn_actions in Game struct; flush into TurnRecord
- Store initial_draw_pile in GameRecord before dealing for replay
- Re-export AuditResult and ReplayResult from prelude
- Add audit_all and replay_all integration tests (5 games each)
- Add record.audit() call in bot_marathon validate_last_game
2. tests/history_integration.rs — play_game_with_bot_profiles() now uses BotProfile::default_profiles() (4 players, mixed BasicStrategy + RandomStrategy), matching the bot_marathon setup that's prove
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.
⏺ Features
save_to() for timestamped file output; GameRecord gains initial_draw_pile: Option for replay
TurnRecord::actions; Game::new refactored to setup() helper; Game::new_with_deck() added for replay
Fixes
case
game.record() call
non-termination with 2-player BasicStrategy-only setup
Tests
Docs / Config