Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor check_victory, don't use [side] no_leader attribute
1. sides without leaders aren't defeated if "fight_on_without_leader = true". don't use no_leader for this purpose anymore. 2. refactor to use a std::set instead of std::vector, and some related improvements, for what was formerly the "seen_leaders" data structure
- Loading branch information
Showing
3 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters