Map Size
Playable Area
Upland

Try it Yourself!

Use the slider to change the distance value in the code below.

Code Explanation

This page demonstrates how bots calculate positions, showing the map size, playable area, and toggleable grids for pathing and placement.

The Code

self.safe_build_position = self.start_location.towards(self.main_base_ramp.top_center, -8)

Map Legend

Start Location
self.start_location
Ramp Top Center
self.main_base_ramp.top_center
Safe Build Position
self.safe_build_position
Unpathable Grid
The pathing_grid shows areas ground units cannot enter.
Placement Grid
The finer placement_grid used for building construction.