The trade-raid block is 16 of a measured turn's 18-22 generator words and it is the first thing the standalone can model as a COUNT rather than as a formula: two chance rolls per entry of the player vector, neither site inside a back edge, both probabilities strictly inside (0,1) so neither early-out fires. src/app/trade_raid implements it with the word cost reported rather than assumed, so a tuning table that pushes an odds value to 0 or 1 removes the draw and the ledger says so. Against lane Z's two calibrated oracle pairs the standalone now consumes 16 words and lands 4 and 2 short, which is exactly the per-call-site ledger's split for those two turns. It does NOT match the oracle's state, and the report says which sites are missing instead of netting them off the total. The tail's last phase -- the per-player turn record -- is modelled for the six fields that are recoverable from the wire, and self-checked every run against the record the input save already carries for its own turn: 480 fields over 80 player-records across the corpus, 0 mismatches. It is not committed. Under --commit-blocked it closes 24 container-shaped divergences on the reference pair and opens 17 leaf-shaped ones, all of them in the five fields the model does not hold, so the block is a measurement now rather than an argument. phases 14/44 of the two turn drivers (8 committed), 3/37 of the tail. divergence unchanged: 209->204 and 108->103, 5 closed / 0 regressed on both.
23 lines
814 B
CMake
23 lines
814 B
CMake
# src/app — the standalone: load a save, run one strategic turn, write a save.
|
|
# Included from the root CMakeLists.txt via add_subdirectory(src/app).
|
|
#
|
|
# The turn logic is a library so the test can drive it in process; `sots_turn` is the CLI.
|
|
|
|
add_library(sots_app STATIC
|
|
phase_catalog.cpp
|
|
trade_raid.cpp
|
|
turn_record.cpp
|
|
turn.cpp
|
|
report.cpp)
|
|
target_include_directories(sots_app PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)
|
|
target_link_libraries(sots_app PUBLIC mars_stream mars_rng sots_game_sim)
|
|
target_compile_features(sots_app PUBLIC cxx_std_17)
|
|
if(NOT MSVC)
|
|
target_compile_options(sots_app PRIVATE -Wall -Wextra -Werror)
|
|
endif()
|
|
|
|
add_executable(sots_turn main.cpp)
|
|
target_link_libraries(sots_turn PRIVATE sots_app)
|
|
if(NOT MSVC)
|
|
target_compile_options(sots_turn PRIVATE -Wall -Wextra -Werror)
|
|
endif()
|