schrum2 / EvoCraft-SCOPE

0 stars 0 forks source link

Change z coordinate with each generation #58

Open schrum2 opened 2 years ago

schrum2 commented 2 years ago

One cool thing we could do is have an evolutionary history represented in the Minecraft world. Make a command line parameter MAINTAIN_EVOLUTIONARY_HISTORY

If this is set to true, then the code does NOT clear out the space occupied by the evolved shapes before placing new shapes. Instead, the shapes remain, but the shapes for the next generation are placed starting at z-coordinate of:

startz - generation * (zrange + SPACE_BETWEEN)

This will require you to modify startz inside of the position_information.

The result of this is that each generation of evolution will exist side by side for the user to view ... though the user could have a hard time catching up with things as they go.

The reason I'm moving in the negative z direction is that I actually want this to work with interactive evolution too. However, this means that whenever new shapes are generated, you still erase the user interface switches, but then you place the new shapes roughly where those switches were before placing new switches a little further back.