Repository navigation
Project editor example: asynchronous engine, Forum viewer and three games - #2
Draft
concordia-claw wants to merge 2 commits into
Draft
concordia-claw wants to merge 2 commits into
concordia-claw wants to merge 2 commits into
Conversation
- `--engine asynchronous` joins sequential and simultaneous. The launcher gives every instance one shared ReactiveMeasurements, as examples/social_media does; it is host-owned and never saved. - A **Forum** central viewer renders the running game master's standard ForumState, so forum posts can be read in the editor. - `--title` sets the editor heading. - projects/ holds the three games from the tutorial: royal-cake.json (situated game master, sequential engine), royal-pond.json (a commons dilemma with the contrib simultaneous game master) and crumbleton-forum.json (the asynchronous social media game master). A test checks that each one loads and builds without model calls. - README: engine choice, the generic simulation prefab and the games. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Copy instance params before adding the shared ReactiveMeasurements, as examples/social_media does, and only look for a ForumState on game masters that have components; pyrefly 1.2.0 flagged both. - The no-model label now says "no model API calls" instead of "Free mock": Concordia itself is always free, and the label should say what NoLanguageModel avoids. - README: sequential is for turn-based games (one entity per step); simultaneous and asynchronous are described alongside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
This builds on the editor teaching example (google-deepmind#389, whose branch is this PR's base). It holds the tutorial work's changes outside the core library. The core changes are in google-deepmind#396.
--engine asynchronous. The launcher gives every instance one sharedReactiveMeasurements, asexamples/social_mediadoes. The object is host-owned and never written to a project.Forum viewer. Forum in the central viewer renders the running game master's standard
ForumState(to_html). Without a forum, it explains how to get one.--title. Sets the editor heading.Three bundled games in
projects/, one per engine:royal-cake.json: situated game master, sequential engine.royal-pond.json: a commons dilemma on the contrib simultaneous game master, in 15-minute rounds.crumbleton-forum.json: the asynchronous social media game master.A new test checks that each one loads and builds without model calls.
Mock label. The no-model label now reads "NoLanguageModel · no model API calls" instead of "Free mock". Concordia itself is always free; the label should say what NoLanguageModel avoids.
README. Covers the engine choice: sequential is for turn-based games with one entity per step, simultaneous lets every player act in the same step, and asynchronous lets each player act at its own pace. It also covers the generic simulation prefab and the three games.
Dependency
royal-pond.jsonsetsstart_time,use_variable_incrementsandcall_to_actiononGameMasterSimultaneous, so it needs google-deepmind#396.test_bundled_projects_load_and_build[royal-pond.json…]fails. Every other example test passes (78 of 79).mainplus Add params/get inspection and runtime-editable game master state google-deepmind/concordia#396, all 79 example tests pass.Test plan
pytest examples/project_editoron upstreammainplus Add params/get inspection and runtime-editable game master state google-deepmind/concordia#396: 79 passed.pyrefly check examples/project_editor/*.py(1.2.0) andpylint --errors-only examples/project_editorare clean on both cores.🤖 Generated with Claude Code