You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A half assed attempt to implement a Mutation algorithm
How it works (in maybe simple terms)
Creates 4 cubes and gives it random x and y speed
If all the cubes die it finds the cube with the most distance
If a cube reaches the end of the screen then it will get that cube
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)
repeats until no cubes die
Libraries used
Pixi.js for rendering
Vite for bundling
Yeah thats it. That's really it!
How to run
With node.js and vite installed go into the directory
Type npx vite or just vite
click on the link it gives you
Waste 20 minutes of your life watching white squares fight to the death