Commit Graph
37 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 cbde7b367e Reschedule undo clears the calendar replay bit (#16)
UndoReschedule of the original clears bit 0x4000 of the calendar day
(high byte & 0xbf) when no replay of another club stays on it; both cores
kept the bit, so the day and its neighbour were no longer offered as
targets after a move was taken back. Tests check the same target days
after the undo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 15:11:03 +01:00
ClaudeandClaude Opus 5.5 d3ea650c07 Modern live ticker: crowd and weather before the kickoff
The recording's ticker matches and the paused live kickoff's matches
carry attendance and weather (temperature, the original's weather
picture; none indoors), as the interface asked in issue 15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 19:06:38 +01:00
ClaudeandClaude Opus 5.5 98e6982d07 Modern press journal: finished stand blocks
When a stand block's construction weeks run out at a kickoff, the
journal notes stadium.expansion_finished with the stadium's places.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:48:34 +01:00
ClaudeandClaude Opus 5.5 706577d002 Modern press journal: monthly results
At the first kickoff of a new month each club manager's cash change over
the month just ended becomes finance.profit or finance.loss. The month
and the cash at its start are saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:46:54 +01:00
ClaudeandClaude Opus 5.5 d6d31f939d Modern UI contract: the end of the game
Resigning as the only or last human ends the game as the end of the set
duration does: the highscore hook updates and shows the table. The end's
reason and date are saved; the session read follows the contract's
Session schema (archived managers, termination reason, ownership, mode),
managers become archived (resigned or retired) and their employments end
with the career. The resign answer carries the ownership change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:39:32 +01:00
ClaudeandClaude Opus 5.5 6570384642 Modern UI contract: nations, crests, photos, employments, allowed commands
TeamRef carries the world's nation and crest asset key, squad rows the
player's photo key. The manager's employments come from the almanac
(clubs and national team side by side), the desk's allowed commands
follow the desk kind. modern_world_info reports the asset coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:32:43 +01:00
ClaudeandClaude Opus 5.5 055b48697e Modern press journal: promotion, advertising, credit, stadium
The season change notes a human club's promotion or relegation; the
confirmed commands note an advertising contract, a loan taken or paid
off and a planned stand expansion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:27:26 +01:00
ClaudeandClaude Opus 5.5 651d262546 Modern UI contract: press journal for business events
Business events cannot be derived from the almanac later, so a saved
journal notes them once: squad changes of the human clubs at a kickoff
(signed, free, sold, contract ended; clubs compared by identity across
the season's new draw positions), toto settlements, season change,
contract renewals and resigning. The news read merges it with the
almanac events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:22:50 +01:00
ClaudeandClaude Opus 5.5 9c436c753e Modern UI contract: press events from the almanac
The news read lists a team's press events derived from the almanac, so
they are the same on every read with stable occurrence ids: match and cup
results (final, extra time, penalties), send-offs and injuries, runs,
league position, champion and titles, with typed facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 18:06:35 +01:00
ClaudeandClaude Opus 5.5 d943494ef4 Modern UI contract: national friendlies
At the national coach's desk the friendly read quotes a match against
another nation on a copy of the Watcom generator (price, payer, ratings,
free dates); friendly.book draws the same ratings and books it. The
opponent bound of the national quote follows the world layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:24:47 +01:00
ClaudeandClaude Opus 5.5 d3d526c2e4 Modern UI contract: calendar read
club_calendar projects the season calendar of a club: the competitions
of each day and the club's league matches on the day of their round, or
on the replay day when moved or postponed. The calendar read lists a
date range of it with fixtures, status and results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:12:57 +01:00
ClaudeandClaude Opus 5.5 6e400d708c Modern UI contract: live table in the paused kickoff
live_league_table is shared by the recording and the paused live state;
a paused league match now reports its league with the running scores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 14:09:04 +01:00
ClaudeandClaude Opus 5.5 eb5c5d6211 Modern UI contract: live table in the ticker
Each live frame carries the league tables of the ticker's matches: the
table before the matchday plus every match of that round at the frame's
minute, the final whistle using the recorded result. Frames carry only
changed tables; a single frame read gets the full standing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:59:02 +01:00
ClaudeandClaude Opus 5.5 74c1504e3a Modern UI contract: bank credits
The credit read previews the loan dialog (bank or another human lender)
with per-field bounds, fees and refund; bank.commit action credit books
the same edits. The bank read now points to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:55:28 +01:00
ClaudeandClaude Opus 5.5 06445c24ef Modern UI contract: scheduling, friendlies and rescheduling
The scheduling read lists the own league matches that can be moved with
their target dates and the moved ones; the friendly read quotes a friendly
against a club with its free dates. friendly.book books it (the payer
accepts the cost, a human opponent consents), fixture.reschedule moves a
league match or takes a move back. All without random draws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:51:35 +01:00
ClaudeandClaude Opus 5.5 f2c895ffb0 Modern UI contract: environment read and environment.commit
The surroundings of Diamond 3.6: three youth teams, co-trainer, doctor and
physio with their monthly budget level and cost, the youth teams' strength,
place and league. environment.commit sets a level 0-6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:44:25 +01:00
ClaudeandClaude Opus 5.5 abbba65a81 Modern UI contract: stand block expansion
quote.request {kind: block, blockId, places, seats?, roof?} builds the stand
block editor's draft (target places, then seats and roof one at a time) and
stadium.commit confirms it with or without the tip, or cancels it. The
stadium read shows the quote with its breakdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:42:26 +01:00
ClaudeandClaude Opus 5.5 dc3ecc3a8a Modern UI contract: resigning ends the career of the last human manager
manager.resign.commit with confirmed true ends the career when the last
human manager resigns (outcome career_ended, sessionState ended, every later
command answers career_ended). Resigning while other humans play needs every
per-manager table moved up a slot and answers resign_not_supported_yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:38:58 +01:00
ClaudeandClaude Opus 5.5 7c5030ca4b Modern UI live: the events so far while a live matchday stands still
read_live during a pause lists each live match's goals, misses, cards and
injuries so far from the group's log, as the almanac reads it at the end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:36:37 +01:00
ClaudeandClaude Opus 5.5 822331f045 Modern UI contract: live matchdays with interventions
session.advance {live: true} runs the kickoff on its own thread and stops at
the minutes of a live match of a human manager (not at a voided one).
live.step plays on, live.substitute and live.tactics act as the original's
pitch and tactics screens during a match (open, change, close) on the
kickoff thread, live.finish plays the day to its end. Other commands answer
live_running meanwhile, read_live reports the minute and the live scores.
A missing contract decision rolls the whole live day back. Also: the
recording takes matches up to the day the kickoff ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:21:43 +01:00
ClaudeandClaude Opus 5.5 10a8f0b881 Modern UI contract: postmatch read
The after-match steps of the last kickoff: every match of it, the matches of
human managers for the report, the Sportschau's eleven of the day as the
engine chooses it (captured during session.advance, only with its replay
option), and the current tables of the day's leagues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:08:08 +01:00
ClaudeandClaude Opus 5.5 fda4b72967 Modern UI: the live ticker replays the last kickoff's matches
ModernSession::read_live answers the ticker's fixture and frame queries with
the engine's recording of the last session.advance: the matches of human
managers with their owners, frames in minute order (kickoff, every event,
half time, the end) with score, chances, cards and players on the pitch, the
event lines, and the day's other matches as the conference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:37:37 +01:00
ClaudeandClaude Opus 5.5 1400848387 Modern UI contract: transfer read and transfer.submit
The transfer read lists the transfer list with asking fee, salary reference,
offers and the own bid, and the own squad. transfer.submit lists an own
player (or offers him for loan) or bids through the original's offer editor
(open, set fee, salary and years, submit); the outcome tells accepted,
pending or rejected. The open editor is part of the rollback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:32:44 +01:00
ClaudeandClaude Opus 5.5 43317985e4 Modern UI contract: toto and exclusive sponsor reads and commands
toto and sponsor reads in the envelope (amounts as Money), toto.submit with
up to six columns and sponsor.answer for a camp's exclusive sponsor offer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:29:25 +01:00
ClaudeandClaude Opus 5.5 e6bc72d3a0 Modern UI contract: building in the stadium (periphery and facilities)
The original's stadium dialog in two commands: quote.request opens it and
gets the building firm's offer (periphery) or selects a facility and levels;
stadium.commit builds - facilities with or without the tip for faster
building - or declines, and closes the dialog. The stadium read shows the
open offer; a refused command also restores the dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:23:06 +01:00
ClaudeandClaude Opus 5.5 6386c891b5 Modern UI contract: stadium read and ticket.commit
The stadium read lists the periphery (the traffic access with its stage),
the eight facilities with their level, the eight stand blocks and the ticket
price, with the original names. ticket.commit sets the admission price.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:19:52 +01:00
ClaudeandClaude Opus 5.5 4372e6b78a Modern UI contract: advertising read, advertising.accept and budget.commit
The advertising read lists boards, shirt and TV rights with their contract and
open offers, the three budgets and the finance preview. advertising.accept
takes an offer by id, budget.commit sets a budget, both through the desk's
own checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:16:51 +01:00
ClaudeandClaude Opus 5.5 f71f072774 Modern UI contract: running-out contracts during session.advance
The original asks for a running-out contract in the middle of the calendar.
session.advance takes the answers in contractExpiry (renew with years and
salary, or release); a contract without an answer rolls the run back and
decision_pending names the player, the interface asks and sends the advance
again. The test plays two seasons of kickoffs answering every request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:15:04 +01:00
ClaudeandClaude Opus 5.5 2ca6b21a94 Modern UI contract: contracts read, quote.request and contract.offer
The contracts read lists remaining months, salary, insurance and bonuses per
player and the open quote. quote.request asks a player's demands for one to
four years (a draw, as at the desk); contract.offer answers applied or
offer_rejected. A refused command also restores the open quote.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:12:34 +01:00
ClaudeandClaude Opus 5.5 6054a44acf Modern UI statistics screen: transfer history and the six curves
Section 1 lists the manager's transfers from the original's own records,
section 2 the six curves of the original (its labels, weekly values and the
absolute scale); the interface scales them itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:05:57 +01:00
ClaudeandClaude Opus 5.5 015fa65f56 Modern UI: the statistics screen reads the almanac
ModernSession::read_statistics_screen answers the statistics screen's filters
with real data: eternal table, national tournaments (winners, scorers,
history), series and records, winners by season and the own club per five
minutes. Views the engine does not record yet (title chances, transfers,
weekly curves, season finances) answer available false, reason not_recorded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 09:00:22 +01:00
ClaudeandClaude Opus 5.5 e82ce1649f Modern UI: the almanac screen reads the recorded matches
ModernSession::read_almanac answers the almanac screen's request kinds
(index, calendar, day, match) from the engine's almanac in the demo's match
form: competition, sides with human managers, result split into regulation,
extra time (by the goal minutes) and shoot-out, referee, attendance, weather,
line-ups and events. Unknown line-ups stay null.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:47:41 +01:00
ClaudeandClaude Opus 5.5 ae817c6d6d Modern UI contract: session.advance
The desk's kickoff as a command: the calendar runs to the next human desk,
the season end desk or the end of the career (matches without live view for
now). A missing desk decision or a failed step answers decision_pending or
advance_failed and leaves the state as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:45:07 +01:00
ClaudeandClaude Opus 5.5 a1590a34ef Modern UI contract: bank read and bank.commit
The bank read lists account, fixed deposit, credit line, investments, the 12
stocks with their price history and the offered funds as Money. bank.commit
moves money to or from the fixed deposit and buys or sells shares and fund
units through the desk's own checks. Credits follow; the stock tip draws a
random number and will be a quote.request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:44:02 +01:00
ClaudeandClaude Opus 5.5 78b827a0e6 Modern UI contract: lineup, tactics and training reads and commands
lineup.commit takes the squad order and swaps rows into place after opening
the board as the desk does; tactics.commit sets the eight values through the
board's checks; training.commit initializes the plan when needed and applies
decreases before increases so every step stays within the limits. Each is one
revision and is rolled back as a whole when the engine refuses a step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:39:41 +01:00
ClaudeandClaude Opus 5.5 99a48a463d Modern UI contract: camps read and the first command, camp.book
ModernSession::ui_command checks careerId, expectedRevision and owner, runs
the engine action and answers command_result or error. A refused command
restores the state and both generators; a repeated requestId gets the stored
answer, a different command under the same id duplicate_request. The camps
read lists maps and camps with a binding, draw-free quote per camp, focus and
the season's stays. Tests cover stale revision, foreign owner, unknown camp,
booking, repeat, conflict and a refused second booking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:25:54 +01:00
ClaudeandClaude Opus 5.5 fec4c6c7e7 Modern UI contract: squad read and contract tests
The squad read lists a squad (own club, any league club or a national team
with a nominated squad) with ids, positions, values, absences and, for the
manager's own club, monthly salary and remaining contract months.
modern_ui_contract_tests checks envelope, identities, money, errors and
that reads leave the state unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 08:19:55 +01:00