Closed schrum2 closed 1 year ago
Extracted the helper methods in minecraftShapeTask and updated MinecraftBlockEvaluateExperiment using them.
I fixed a typo in this with the "spaceBetweenMinecraftShapes" parameter. I also added "minecraftChangeCenterOfMassFitness:true" as a default fitness to use, but that may need to be changed/generalized. I also added "minecraftAccumulateChangeInCenterOfMass:true"
The
MinecraftBlockEvaluateExperiment
is currently hard-coded to use theChangeCenterOfMassFitness
, but it would be easy to fix this. First, look at he constructor forMinecraftShapeTask
and see how the array of fitness functions are filled based on command line parameters. The code that does this inMinecraftShapeTask
should be extracted into a helper method that can be used by bothMinecraftShapeTask
andMinecraftBlockEvaluateExperiment
. Once that helper method exists,MinecraftBlockEvaluateExperiment
can call it to get a list of fitness functions (based on command line parameters), and apply all of them to the shape rather than just always usingChangeCenterOfMassFitness
.