ScratchData LogoScratchData
Back to StampDanFan's profile

Creature Evolution Test

STStampDanFan•Created May 28, 2020
Creature Evolution Test
2
2
47 views
View on Scratch

Instructions

Evolution!!!! I don't much about this. #evolution 100 creatures spawn randomly with random "brains". Basically how the creatures work is that: 1. Detect surroundings. They only know in a 5 by 5 square around them if that place is land. 2 is land, -2 is not land. 2. Move! Their Brain has 50 numbers, 2 of them correspond to one spot in the surrounding. Add up 25 products! (brain synapse times number for surroundings.) One for x Velocity, and one for y Velocity. The overall distance moved is also recorded. 3. Detect if Touching Land. It records if the creature is touching land. 4. Repeat the whole cycle until the creature dies. Every two seconds, elimination happens! There is a 10 sec-ish grace period. Each creature has a chance to survive, and that chance is increased when touching land more and moving at a moderate speed. When all creatures have died, the generation increases and the longest-lasting creature is now the basis for the 100 new creatures' brains. There will still be some mutations to encourage differences in behavior. Hopefully, after many generations, the creatures' brains are smarter. This is just a proof of concept, and will probably fail. I might give them bigger brains to evolve better. Music is "Airship Serenity" by Kevin Macleod. Inspired by Carykh. Changelog: No cloning during a generation. Overall movement is counted instead of average movement. Added constant input.

Project Details

Project ID400022487
CreatedMay 28, 2020
Last ModifiedJune 8, 2020
SharedMay 30, 2020
Visibilityvisible
CommentsAllowed