schrum2 / MM-NEAT

Modular Multiobjective (Hyper) Neuro-Evolution of Augmenting Topologies + MAP-Elites: Java code for evolving intelligent agents in Ms. Pac-Man, Tetris, and more, as well as code for Procedural Content Generation in Mario, Zelda, Minecraft, and more!
http://people.southwestern.edu/~schrum2/re/mm-neat.php
Other
50 stars 20 forks source link

Make Unit Test for the Water/Lava Fitness #874

Closed schrum2 closed 1 year ago

schrum2 commented 1 year ago

I just made a file: WaterLavaSecondaryCreationFitnessTest. Note that this is within the test subdir rather than main.

Compare with ChangeCenterOfMassFitnessTest, then make some tests that generate basic shapes with Water and Lava that produce a known or approximately known number of cobblestone and/or obsidian blocks so that you can do an assertEquals on what the final fitness value should be.

JoannaBlatt commented 1 year ago

Maybe rename WaterLavaSecondaryCreationFitness to WaterLavaCobblestoneObsidionCreationFitness

maybe something like acceptedBlockTypes:ObsidianCobblestone ?

schrum2 commented 1 year ago

I mostly fixed this. There was an issue with running multiple servers, and also a problem with the clear area being too big. I fixed all but one of the tests, which is completely commented out. Fix that one test, verify that everything can Maven install, and then you can close the issue again.

schrum2 commented 1 year ago

Seems to work!