Skip to content

Nightly_2024.03.17_04-07

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 17 Mar 04:08
· 1 commit to stable since this release
6345cfb
V0.3.1 (#77)

* fix: drain_filter to extract_if

* feat: submaps (aka respawn maps)

- Submaps are collections of territories within regions of a map
- Respawn maps are implemented through submaps of the main map;
  currently submap id 0 is the main map and submap id 1 is the respawn
  map
- For respawn, the order of execution is as follows:
1. We process submap 0 (the main map) as normal
2. We determine which team(s) were eliminated on the main map and which
   have not yet used any respawns (teams.respawn_count < 1)
3. If any teams have previously been on submap id 1 but are now present
   on submap 0,  then we discard any turns made on submap id 1 by
   players on those teams
4. We process submap 1 (the secondary map), assigning the protected
   territories of any team which has succesfully returned to submap 0 to
   the NCAA (team id 0)
5. We randomly shuffle the eligible eliminated teams
6. We take all submap 1 territories owned by NCAA and add them to a pool
   of re-assignable territories
7. We take all teams that own more than one territory on submap 1 and
   select all but one of their territories to add to the pool of
   re-assignable territories randomly (but all such territories will be
   placed after any NCAA territories to ensure NCAA territories are
   exhausted first)
8. We reassign the territories from the re-assignable pool until either
   it is exhausted or all respawn-eligible teams have recevied a single
   territory
9. We merge all results from all submaps and write it to the database

* fix: update auth to use territory ownership as sot

* fix: minor bugs

* fix: lints

* fix: back to green

* chore: clippies