Browse files

Split legions in order of importance in case there aren't enough mark…

…ers.
  • Loading branch information...
1 parent 4da6fae commit 6994e8065615d801ac255d090beadb421e428b68 @dripton committed Aug 8, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 slugathon/ai/CleverBot.py
View
3 slugathon/ai/CleverBot.py
@@ -387,7 +387,8 @@ def split(self, game):
return
player = game.active_player
caretaker = game.caretaker
- for legion in player.legions:
+ # Let more important legions get the first crack at markers.
+ for legion in player.sorted_legions:
if len(legion) == 8:
if game.turn != 1:
raise AssertionError("8-high legion", legion)

0 comments on commit 6994e80

Please sign in to comment.