https://github.com/mountain/battlefield2
A genetic neural evolution platform for Robot Rumble Game
https://github.com/mountain/battlefield2
Last synced: 11 months ago
JSON representation
A genetic neural evolution platform for Robot Rumble Game
- Host: GitHub
- URL: https://github.com/mountain/battlefield2
- Owner: mountain
- License: mit
- Created: 2024-11-04T05:31:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-17T16:49:04.000Z (over 1 year ago)
- Last Synced: 2025-03-16T23:13:49.292Z (over 1 year ago)
- Language: Python
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zot-bot
An evolutionary neural-network bot playing [Robot Rumble games](https://robotrumble.org/).
To run the python code, you need download rumblebot and create a symbol link to rumblebot in the project root.
## how to run
install dependencies
```bash
brew install redis
pip3 install redis rq rq-dashboard sh
ln -s RUMBLEBOT PROJ_DIR
```
initialize the genetic pool with size of 1000
```bash
zb init -n 1000
```
start the workers
```bash
zb worker -t match -n 10
```
execute the genetic evolution
```bash
zb run -n 10000
```
report the first 10 seeds
```bash
zb report -n 10
```
### commands
#### init
initialize the genetic pool with size of 1000
```bash
zb init -n 1000
```
#### worker
execute the worker asynchronously
```bash
zb worker -t match -n 10
```
currently only two buildin task(the -t paramater) are supported
* match
* exam
#### run
execute the genetic evolution
```bash
zb run -n 10000
```
#### report
report the first 10 seeds
```bash
zb report -n 10
```
#### peek
given the detailed information of the seed with bid 1234
```bash
zb peek -b 1234
```
#### poke
given the code of the seed with bid 1234
```bash
zb poke -b 1234
```
#### benchmark
make a benchmark between bot with bid 1234 and the buildin random-bot
```bash
zb benchmark -b 1234 -t random-bot -n 200
```
currently only four buildin bot are supported
* random-bot
* flail
* chaser
* black-magic
#### play
make a play between bot with bid 1234 and the buildin random-bot
```bash
zb play -b 1234 -t random-bot -m web
```
currently only two buildin bot are supported
* random-bot
* flail
* chaser
* black-magic
two mode are supported
* term
* web