autonomy-and-verification-uol / mapc2020-lfc

MLFC team code for the 2020 Multi-Agent Programming Contest.
0 stars 1 forks source link

Cartography: identify partner/end of cartography #3

Closed svenlinker closed 4 years ago

svenlinker commented 4 years ago

Agents in the cartographer role should identify their partner to finish the cartography phase and compute the size of the grid.

Solution: if the other agent is identified in the direction of movement, it means that the grid (in this direction) has been covered by both agents.

Example: A1 moves north and A2 moves south. If A1 "sees" A2 in the north, then A1 knows that they covered the whole grid height. (similarly for A2)

Assumption: the agents initially agree that they move away from each other. Example: if A1 was north of A2 during the identification and start of cartography role, then A1 will move north and A2 will move south to determine grid size.