This file contains hidden or 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
| async def scv_distribute_workers(self): | |
| workers_to_distribute = [scv for scv in self.scvs.idle] | |
| workers_must_distribute = [scv for scv in self.scvs.idle] | |
| deficit_bases = [] | |
| deficit_refineries = [] | |
| mining_bases = self.get_mining_bases() | |
| refinery_tags = { | |
| ref.tag | |
| for ref in self.units(REFINERY).ready.filter( | |
| lambda ref: any([ref.position.distance_to_point2(base.position) <= 10 for base in mining_bases]) |
This file contains hidden or 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
Show hidden characters
| { | |
| "colors": { | |
| "activityBar.background": "#1E2428", // standard background | |
| "activityBar.border": "#000000", // standard border | |
| "activityBar.dropBackground":"#3E4246", // drag and drop | |
| "activityBar.foreground": "#dcdcdc", | |
| "activityBar.inactiveForeground": "#BCBDBE", | |
| "activityBarBadge.background": "#0F1519", | |
| "activityBarBadge.foreground": "#dcdcdc", | |
| "badge.background": "#3E4246", |
This file contains hidden or 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
| testlist = ['A2 White Pawn', 'B2 White Pawn', 'C2 White Pawn', 'D2 White Pawn', | |
| 'E2 White Pawn', 'F2 White Pawn', 'G2 White Pawn', 'H2 White Pawn', | |
| 'A7 Black Pawn', 'B7 Black Pawn', 'C7 Black Pawn', 'D7 Black Pawn', | |
| 'E7 Black Pawn', 'F7 Black Pawn', 'G7 Black Pawn', 'H7 Black Pawn', | |
| 'B1 White Knight', 'G1 White Knight', 'B8 Black Knight', | |
| 'G8 Black Knight', 'C1 White Bishop', 'F1 White Bishop', | |
| 'C8 Black Bishop', 'F8 Black Bishop', 'A1 White Rook', | |
| 'H1 White Rook', 'A8 Black Rook', 'H8 Black Rook', | |
| 'D1 White Queen', 'D8 Black Queen', 'E1 White King', | |
| 'E8 Black King'] |
NewerOlder