Repository navigation
Blockilization: teammates research their own techs, Civ V style - #37
Merged
Merged
Conversation
Each teammate now chooses their own research instead of the team sharing one pick that the latest choice overwrote. Progress toward each tech is still the team's: two teammates on the same tech pool their science into it, and on different techs the team researches both at once. A tech finished between them is learned by all, and what's left over goes into the next research of whoever was on it (or waits as spare science). The tech tree shows what each teammate is researching (a tag on the tech and a line in the header), and the research panel says it too. The 'who chose it' state (researchBy), the stale-choice guard and the confirm dialog from the shared-pick design are gone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3o1ArEAsnYdwRkyKzWS4X
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.
Requested by Patrick · project thread
What this is
Team research now works the way it does in Civ V. Until now a team shared a single research pick. Any teammate's choice replaced it, and #19 only made that ask first.
shareResearchstill pools what each member put into each tech).Player.researchBy, thewasguard on the research order, the "replace your teammate's choice?" dialog, and the bot rule "a bot doesn't undo a person's choice". Bots on a team now pick their own research too. Old saves still load, since an extraresearchByfield is ignored.ViewSelf.researchByis replaced bymates: { index, researching, science }[].Screenshot or clip
None. The new tag is plain CSS next to the existing queue badge.
Checklist
npm run build: not run, because there is no wasm-pack in my environment.tsc --noEmitshows no errors insrc/games/blockilization(the only errors are the missing@engine/voxel_engine.jsbuild output), andcheck-boundariespasses. CI will run the full build.npm run test:headless: not run, for the same reason. The rules cases (tests/effects.ts) pass, 257 of 257. The team research cases are rewritten for the new rules:Generated by Claude Code