Skip to content

Add Civ Lite resources and trade#63

Merged
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/resources-trade-20
Jun 30, 2026
Merged

Add Civ Lite resources and trade#63
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/resources-trade-20

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a deterministic Civ Lite resource model for strategic and luxury resources
  • connect controlled resource yields into city resource gathering and visible map/minimap/tooltips
  • add a Resources & Trade sidebar with a finite trade-route action between player and bot empires

Closes #20

Validation

  • node --test demo/civ-lite/resource-model.test.mjs
  • node --check demo/civ-lite/resource-model.js
  • node --check demo/civ-lite/game.js
  • node --check demo/civ-lite/sprites.js
  • git diff --check
  • Playwright CLI smoke on http://127.0.0.1:4202/demo/civ-lite/: sidebar resources rendered, trade route opened, end turn updated food/prod/science and trade duration, canvas pixel sample was non-empty. Only favicon.ico 404 appeared in console.

@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

CI note: the failing Build Godot Web export job is still stopping at the existing Godot Web preset configuration error: Cannot export project with preset Web due to configuration errors. This PR only changes demo/civ-lite JS/HTML/CSS plus a local resource-model test. Local validation passed: node --test demo/civ-lite/resource-model.test.mjs; node --check demo/civ-lite/resource-model.js; node --check demo/civ-lite/game.js; node --check demo/civ-lite/sprites.js; git diff --check; and a Playwright CLI smoke check for resource/trade panel rendering, opening a trade route, end-turn resource updates, active trade duration, and non-empty canvas rendering. SonarCloud Quality Gate passes with 0 new issues on latest head 4ba9738.

YfengJ and others added 3 commits June 30, 2026 09:48
@leocagli leocagli merged commit cfa4ab3 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: recursos estratégicos/lujo y comercio

2 participants