Skip to content

Add Civ Lite production queue and victory loops#68

Merged
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/production-movement-victory-16
Jun 30, 2026
Merged

Add Civ Lite production queue and victory loops#68
leocagli merged 5 commits into
Bitcoindefi:mainfrom
YfengJ:codex/production-movement-victory-16

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #16.

Summary

  • Adds a tested Civ Lite production model for city queues, overflow progress, movement planning, and conquest/domination victory evaluation.
  • Wires Athens/Babylon into production queues, completed unit spawning, movement-cost planning, city capture checks, and victory state updates.
  • Adds a city production panel with Warrior/Scout queue actions, progress display, and queue status.

Validation

  • node --test demo/civ-lite/production-model.test.mjs
  • node --check demo/civ-lite/production-model.js
  • node --check demo/civ-lite/game.js
  • node --check demo/civ-lite/sprites.js
  • git diff --check
  • Browser smoke: opened demo/civ-lite/index.html, queued Scout, ended a turn, verified Warrior completion, Scout progress, nonblank canvas, and 0 console errors after reload.

This only touches the Civ Lite gameplay demo; it does not modify wallet, Web3, payout, identity, or reward flows.

@YfengJ

YfengJ commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

CI note: SonarCloud passed. The Build Godot Web export job fails at the existing Godot export step with Cannot export project with preset "Web" due to configuration errors while running make godot-export. This PR only changes the Civ Lite demo JS/HTML/CSS and does not touch the Godot export preset or workflow.

Local validation for the changed demo passed:

  • node --test demo/civ-lite/production-model.test.mjs
  • node --check demo/civ-lite/production-model.js
  • node --check demo/civ-lite/game.js
  • node --check demo/civ-lite/sprites.js
  • git diff --check
  • Browser smoke: queued Scout, ended a turn, confirmed Warrior completion / Scout queue state, nonblank canvas, and no console errors after reload.

YfengJ and others added 4 commits June 30, 2026 05:30
@leocagli leocagli merged commit 91b62c6 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: cola de producción de ciudad, movimiento 4X y condiciones de victoria

2 participants