Closed tweakimp closed 5 years ago
bot_ai.expansion_location
sort
statistics.mean
a in list with one object
a is object
a in list
a in set
len(a) > 0
a
len(a) == 0
not a
class classname(object)
assert
issue_events
controlgroup.empty
AbstractPlayer
type
p_type
** 0.5
sqrt
position.distance_to
Unit.can_attack
PassengerUnit.can_attack
is_carrying_minerals
is_carrying_vespene
Units.is_visible
bot_ai.expansion_location
sort
andstatistics.mean
a in list with one object
becomesa is object
a in list
becomesa in set
len(a) > 0
becomesa
len(a) == 0
becomesnot a
class classname(object)
assert
statementsissue_events
controlgroup.empty
propertyAbstractPlayer
: renametype
top_type
to not collide with reserved keyword** 0.5
instead ofsqrt
inposition.distance_to
Unit.can_attack
andPassengerUnit.can_attack
propertiesis_carrying_minerals
andis_carrying_vespene
Units.is_visible
property