Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gamemake-eng/mutationcubeguy

A simulation of evolution
https://github.com/gamemake-eng/mutationcubeguy

evolution machine-learning machine-learning-algorithms mutation mutation-algorithm

Last synced: about 1 month ago
JSON representation

A simulation of evolution

Awesome Lists containing this project

README

        

# MutationCubeGuy
### A half assed attempt to implement a Mutation algorithm

## How it works (in maybe simple terms)
1. Creates 4 cubes and gives it random x and y speed
2. If all the cubes die it finds the cube with the most distance
3. If a cube reaches the end of the screen then it will get that cube
4. With the speed data from the best cube, we set the speed of 4 new cubes to the one of the best cube with a small mutation (It adds a number between -1 and 1 to each speed variable)
5. repeats until no cubes die

## Libraries used
- Pixi.js for rendering
- Vite for bundling
- Yeah thats it. That's really it!

# How to run
1. With node.js and vite installed go into the directory
2. Type `npx vite` or just `vite`
3. click on the link it gives you
4. Waste 20 minutes of your life watching white squares fight to the death