Give the six play settings of the tactics board an effect; draw the board in chalk
- Match engine (Modern turn driver only, MatchEngine::tactic_effects): wing play, through balls, goal kicks, flat or high balls, offside trap and pressing of a human side shift how often it and its opponent come to a chance (play_shift, at most two steps of the chance roll). Each setting pays in one situation and costs in another; pressing also raises the foul roll. No random numbers are drawn; computer sides and the Classic core are unchanged. Documented in docs/DIFFERENCES.md. - The tactics read names the settings; desk and live dialog show every value in words with one sentence on its effect. The live dialog offers all eight settings again. - The tactics board is a slate with a wooden frame, drawn in wobbling chalk strokes. - modern_season_sim: SIM_TACTICS keeps a tactic set for measuring; new modern_play_shift_tests pin the direction of every setting. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9708b720b2
commit
919342a5ae
16 files changed
+344
-80
No files matched your search
@@ -17,6 +17,7 @@
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <stdexcept>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
#include "modern/app/modern_session.hpp"
|
||||
@@ -502,6 +503,14 @@ int main(int argc, char** argv) {
|
||||
int camp_stays = 0; // SIM_CAMP: training camp stays booked
|
||||
int sponsor_offers = 0, sponsor_started = 0, sponsor_queued = 0; // SIM_SPONSOR
|
||||
for (; played < turns; played++) {
|
||||
// SIM_TACTICS=a,b,c,d,e,f,g,h: the manager keeps these eight tactic settings
|
||||
// (manager record +0xd2..; -1 leaves a setting alone), to measure their effect
|
||||
if (const char* tactics = std::getenv("SIM_TACTICS")) {
|
||||
std::stringstream list(tactics);
|
||||
std::string item;
|
||||
for (size_t k = 0; k < 8 && std::getline(list, item, ','); ++k)
|
||||
if (const int v = std::atoi(item.c_str()); v >= 0) g.manager_records.at(0xd2 + k) = uint8_t(v);
|
||||
}
|
||||
// SIM_ADVERTISING=1: the manager keeps his advertising places filled, as every
|
||||
// player does (the largest income besides the gate): an expired contract is renewed
|
||||
// when the sponsor offers it (legacy routine), a free place takes the best acceptable
|
||||
|
||||
Reference in new issue
Block a user