Vlad-Shcherbina / icfpc2018-tbd

1 stars 0 forks source link

Library Functions #12

Open blakeelias opened 6 years ago

blakeelias commented 6 years ago

We need a variety of functions available that multiple solvers may need to use.

Board Queries:

Bot movement:

Lucus16 commented 6 years ago

First of all, in order to have bots move around without colliding, I think it's useful if bots can mark cells as reserved for movement: When it needs to go somewhere, it calculates a free path and reserves all the cells on that path and then frees them after it's moved past them.

Similarly, it's useful to be able to reserve cells for filling so that independently acting bots don't try to fill the same space. Marking cells as reserved may also help for avoiding other conflicts.

In that context, the following building blocks seem useful:

manpages commented 6 years ago
Vlad-Shcherbina commented 6 years ago

FYI C++ pathfinding is here: https://github.com/Vlad-Shcherbina/icfpc2018-tbd/blob/4989afb52149422a9dc7bac6204a03cd71d6f8f9/production/cpp_emulator/tests.py#L65