jharwell / prism

Parallel Construction Using Graphical Invariants
GNU General Public License v3.0
1 stars 0 forks source link

bugfix/22-block-cloning-on-placement #22

Closed jharwell closed 4 years ago

jharwell commented 4 years ago

This is necessary so that the overal # of blocks available for robots to find in the arena stays the same as blocks are placed onto the structure. The easiest way to do this is to place a CLONE of the block onto the structure, giving it a new unique ID in order to make debugging easier.

This avoids needing the arena map to maintain a pool of MORE blocks than are actually available in the arena, and adding blocks to the pool whenever one is removed due to block placement. This also should allow the redistribution governor to work exactly the same as it does in FORDYCA.