Repository navigation
Add cross-platform terminal console (ratatui TUI) - #1
Merged
Merged
Conversation
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
Adds
solverlab-tui/, a cross-platform copy of the SwiftUI simulation console built with ratatui 0.30. It linkssolver_coredirectly (no UniFFI), so the solvers can be exercised on Linux, Windows and macOS with the same controls, metrics, results table and CSV export as the macOS app.What's included
SimGameType,SimConfig,SimResult, per-game runners (scoring, timeouts and stop-reason rules), batched parallel runtime with auto-parallelism, countdown/ETA, CSV format (byte-for-byte compatible).Codable).--game,--sims,--parallel,--auto,--timeout,--seed,--config,--no-persist,--ascii.--headless [--csv out.csv]) for CI and remote machines.--seed(ChaCha8 per game id) so results can be compared across platforms..github/workflows/tui.yml): fmt/clippy/tests on ubuntu, macos and windows, plus a seeded headless run on each OS whose CPU-independent CSV columns are diffed across platforms.make tui,make tui-run,make tui-test.Differences from the SwiftUI app
--seedis optional; without it decks are random, as in the app.stalledinstead of aborting the process.Testing
cargo fmt --checkandcargo clippy --all-targets -- -D warningsclean.cargo test: 79 unit tests (including ports ofSimulationTests.swift) + 4 headless end-to-end tests against the binary.cargo test --release -- --ignored: Klondike/Spider smoke tests and seeded determinism.Notes
solver-core-rs/is untouched.solver_coredeclarescrate-type = ["lib", "staticlib", "cdylib"], which also builds static/dynamic artifacts when used as a dependency.