Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gamemake-eng/mutationcubeguy
- Owner: gamemake-eng
- Created: 2024-02-03T16:32:04.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T22:38:54.000Z (about 1 month ago)
- Last Synced: 2024-11-10T23:28:09.456Z (about 1 month ago)
- Topics: evolution, machine-learning, machine-learning-algorithms, mutation, mutation-algorithm
- Language: JavaScript
- Homepage: https://evolutioncube.pages.dev/
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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