Closed schrum2 closed 2 years ago
Make sure shapes have a chance to move. Some shapes that move are getting 0 fitness before they have a chance to move. This doesn't solve the max fitness problem though.
To debug, I'm going to need to wait until max fitness is called and print out a lot of info about the shape/space/area to try and figure it out. In the meantime, I'm running to see how much averaging helps.
Found and fixed a case where a single block by itself would earn max fitness.
I feel that weird corner cases will keep popping up, but it once again seems that the fitness function works, or at least that it won't inappropriately award max fitness. It might still give something a lower fitness than it deserves, but that is just bad luck. Going to close this for now.
This block sequence earned max fitness somehow:
Watching it in the archive, it does not fly. Need to investigate.