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

Alternate BlockSets in Java #763

Closed schrum2 closed 2 years ago

schrum2 commented 2 years ago

In the package edu.southwestern.tasks.evocraft.MinecraftClient.BlockType add the classes UndroppableBlockSet and AllBlocksBlockSet which both implement BlockSet.

Also, in the constructor of MinecraftShapeTask, use a command line parameter called "minecraftBlockSet" (which you will need to create with a default value of the machine block set) to specify the value of the blockSet variable instead of hardcoding to be MachineBlockSet.

See the other code in this constructor that uses ClassCreation.createObject for guidance.

richeyme commented 2 years ago

The blockset is now set based on the command line parameter and two new blocksets were made into their own classes