Skip to content

Commit 27af337

Browse files
authored
Merge pull request #76 from battlecode/master
Private release
2 parents 1cb6059 + 5ea1de0 commit 27af337

File tree

3 files changed

+608
-0
lines changed

3 files changed

+608
-0
lines changed

engine/src/crossplay_python/battlecode26/wrappers.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ def can_transfer_cheese(loc: MapLocation, cheese_amount: int) -> bool:
112112

113113
@staticmethod
114114
def can_turn(dir: Direction = ...) -> bool:
115+
"""
116+
Possible parameter combinations:
117+
- can_turn()
118+
- can_turn(dir=[value])
119+
"""
115120
if dir is ...:
116121
return _wait(_m.RC_CAN_TURN, [])
117122
else:
@@ -283,6 +288,14 @@ def sense_map_info(loc: MapLocation) -> MapInfo:
283288

284289
@staticmethod
285290
def sense_nearby_map_infos(center: MapLocation = ..., radius_squared: int = ...) -> list[MapInfo]:
291+
"""
292+
Possible parameter combinations:
293+
- sense_nearby_map_infos()
294+
- sense_nearby_map_infos(center=[value])
295+
- sense_nearby_map_infos(radius_squared=[value])
296+
- sense_nearby_map_infos(center=[value], radius_squared=[value])
297+
"""
298+
286299
if center is ... and radius_squared is ...:
287300
return _wait(_m.RC_SENSE_NEARBY_MAP_INFOS, [])
288301
elif radius_squared is ...:

0 commit comments

Comments
 (0)