feat(#12): Faction system with territory and alliances #26

Merged
ti-paul merged 1 commit from feature/12-factions into main 2026-06-12 06:37:34 +00:00
Member

Closes #12

New: server/factions.js

  • 4 factions with colors
  • Membership, territory, alliances
  • Score: members10 + territory5
  • ASCII leaderboard + faction info

29 tests. 117 total pass.

Closes #12 ## New: server/factions.js - 4 factions with colors - Membership, territory, alliances - Score: members*10 + territory*5 - ASCII leaderboard + faction info 29 tests. **117 total pass.**
feat(#12): Faction system with territory and alliances
Some checks failed
CI / test (pull_request) Failing after 0s
f99f382bb3
New module server/factions.js:
- 4 default factions: Red Legion, Blue Order, Green Vanguard, Gold Sun
- joinFaction/leaveFaction: membership management
- claimTerritory: pixel-level territory tracking
- getFactionScores: members * 10 + territory * 5
- formAlliance/breakAlliance/areAllied: alliance system
- getLeaderboard/renderLeaderboard: ASCII display
- renderFactionInfo: detailed faction view

29 new tests. All 117 tests pass. Closes #12.
ti-paul left a comment
No description provided.
29 tests, 117 total. Factions + territory + alliances. LGTM.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/pixel-clash!26
No description provided.