add territories struct #6

Merged
linnealovespie merged 8 commits from territories into main 2026-05-24 05:17:54 +00:00

New territories struct keeps tracks of all territories in a game to improve the logic of finding the claiming team and score of the territory. Next steps are to use the new endpoint to add more info to the front end.

New territories struct keeps tracks of all territories in a game to improve the logic of finding the claiming team and score of the territory. Next steps are to use the new endpoint to add more info to the front end.
linnealovespie added 1 commit 2026-05-22 20:40:16 +00:00
ammaratef45 approved these changes 2026-05-23 04:49:19 +00:00
ammaratef45 left a comment
Owner

neat! one thing left (just some cleaning, can be done later if feeling lazy so I approved)

neat! one thing left (just some cleaning, can be done later if feeling lazy so I approved)
src/geo_utils.rs Outdated
@ -57,6 +67,33 @@ impl GeoUtils {
copy
}
// pub fn get_number_neighborhoods(self, teams : Vec<Team>) -> HashMap<Team, i32> {
Owner

delete this pls <3 (hint: you can use git add -p when adding you changes to see what is getting added exactly and not miss stuff like this)

delete this pls <3 (hint: you can use `git add -p` when adding you changes to see what is getting added exactly and not miss stuff like this)
linnealovespie marked this conversation as resolved
linnealovespie added 3 commits 2026-05-24 05:08:38 +00:00
linnealovespie added 1 commit 2026-05-24 05:09:29 +00:00
linnealovespie added 2 commits 2026-05-24 05:13:51 +00:00
linnealovespie added 1 commit 2026-05-24 05:16:30 +00:00
Author
Owner

yolo merge!

yolo merge!
linnealovespie merged commit 98f085daba into main 2026-05-24 05:17:54 +00:00
linnealovespie deleted branch territories 2026-05-24 05:17:55 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RTM/mapbattle#6
No description provided.