https://github.com/turkeymcmac/bouncers
A simulation of evolving agents trying to win a one-on-one duels within a two-dimensional physical environment.
https://github.com/turkeymcmac/bouncers
evolution neural-network simulation
Last synced: 3 months ago
JSON representation
A simulation of evolving agents trying to win a one-on-one duels within a two-dimensional physical environment.
- Host: GitHub
- URL: https://github.com/turkeymcmac/bouncers
- Owner: TurkeyMcMac
- License: mit
- Created: 2021-03-28T21:02:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T17:32:30.000Z (about 3 years ago)
- Last Synced: 2025-03-15T22:31:47.815Z (11 months ago)
- Topics: evolution, neural-network, simulation
- Language: C++
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bouncers
This is a simulation of evolving agents trying to win a one-on-one duels within
a two-dimensional physical environment.
## Building
You can probably just run `make`, which produces an optimized build by default.
You need a C++11 compiler and SDL2. The Makefile probably requires Unix.
## User Interface
When starting the simulation (by running `./bouncers`,) you can provide a
numeric seed as the first argument. If you don't provide one, the program will
choose a seed for itself.
While the simulation is running, you will see an increasing number which is how
many generations have passed. You can press SPACE to pause/unpause. Pressing
ENTER animates one round for you. The agents are the moving circles, and the
time remaining is shown in the top left. If an agent has a smaller circle inside
its body, that means it has the higher score.
## Customization
I've decided not to bother writing a configuration parser. To customize the
simulation, you can edit the files [src/conf.hpp](src/conf.hpp) and
[src/score.cpp](src/score.cpp). The former contains many numeric parameters, and
the latter lets you decide how to score the agents.