Skip to content

Add Civ Lite multi-civ setup#67

Merged
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/multiciv-setup-22
Jun 30, 2026
Merged

Add Civ Lite multi-civ setup#67
leocagli merged 4 commits into
Bitcoindefi:mainfrom
YfengJ:codex/multiciv-setup-22

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #22.

Summary

  • adds a tested setup model for map size, civilization count, difficulty, seed, victory toggles, diplomacy, and AI personality plans
  • adds a compact Civ Lite setup panel that can rebuild the game with 2-4 civilizations and show civilization/diplomacy state
  • updates Civ Lite state, bot turns, targeting, visibility, city/unit rendering, and capture logic to support multiple AI civilizations without touching wallet/Web3/payment flows

Validation

  • find demo/civ-lite -name '*.test.mjs' -print | sort | xargs node --test\n- node --check demo/civ-lite/setup-model.js && node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js\n- git diff --check\n- Chrome/Playwright smoke against demo/civ-lite/index.html: rebuilt a 4-civ Wide/Hard seed-77 game, verified Aggressive/Expansive/Scientific roster, AI-AI peace diplomacy rows, nonblank canvas, and no page/resource errors except favicon

@YfengJ YfengJ force-pushed the codex/multiciv-setup-22 branch from 405305c to 015a8f7 Compare June 29, 2026 21:00
@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

CI note: SonarCloud now passes on the latest head with 0 new issues after the cleanup push. The remaining red check is the known Godot Web export preset configuration failure (Cannot export project with preset "Web" due to configuration errors), which is unrelated to this Civ Lite JS setup change.

Local validation completed:

  • find demo/civ-lite -name '*.test.mjs' -print | sort | xargs node --test\n- node --check demo/civ-lite/setup-model.js && node --check demo/civ-lite/game.js && node --check demo/civ-lite/sprites.js\n- git diff --check\n- Chrome/Playwright smoke: rebuilt a 4-civ game, verified AI personalities/diplomacy rows, and confirmed the canvas rendered

@leocagli leocagli merged commit 9cef9b2 into Bitcoindefi:main Jun 30, 2026
1 check passed
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gameplay: setup de partida, multi-civ y personalidades/diplomacia de IA

2 participants