Skip to content

Commit

Permalink
📝 Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wrenger committed Nov 7, 2023
1 parent cfd90b6 commit 528da2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ warp = { version ="0.3", default_features = false }
rand = { version = "0.8", default_features = false, features = ["small_rng", "getrandom", "alloc"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
clap = { version = "4.4", default-features = false, features = ["std", "derive"] }
clap = { version = "4.4", default-features = false, features = ["std", "derive", "help", "usage"] }
owo-colors = "3.5"
async-recursion = "1.0"
log = { version = "0.4", features = ["release_max_level_info"] }
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Rusty Snakes

Fast [battlesnake](https://play.battlesnake.com) agents written in rust.
Fast [Battlesnake](https://play.battlesnake.com) agents written in rust.
This project has been developed as part of an AI games course at the Leibniz University Hannover.

Our `Tree` agent ("ich heisse marvin") managed to reach the second and first place in the global, dual and royale arenas.
In the Spring League 2021 we even surpassed the best snake ([Kreuzotter](https://github.com/m-schier/battlesnake-2019)) of our university from the last year.
Our `Tree` agent ("ich heisse marvin") managed to reach second and first place in the global, dual and royale arenas.
In the Spring League 2021, we even surpassed the best snake ([Kreuzotter](https://github.com/m-schier/battlesnake-2019)) of our university from last year.

At the end of 2021, the new `Flood` agent reached the second place in the Elite Division of the Winter Classic Invitational 2021.
At the end of 2021, the new `Flood` agent reached second place in the Elite Division of the Winter Classic Invitational 2021.


## Structure of this Repository

This repository contains a web server that runs with the battlesnake API version 1
This repository contains a web server that runs with the Battlesnake API version 1
and abstractions for the used data types ([src/env.rs](src/env.rs)).

We developed multiple different agents ([src/agents](src/agents)),
Expand All @@ -25,7 +25,7 @@ We also developed a fast simulator to execute moves and analyze their outcomes.
It was used to evaluate the heuristics and tune their parameters.

The [hpo](hpo) directory contains the code for automatically optimizing the agent's hyperparameters.
It utilizes the simulator, mentioned below, to simulate the generated configs and find the best performing parameters.
It utilizes the simulator, mentioned below, to simulate the generated configs and find the best-performing parameters.
The current default configurations of the `Flood`, `Tree`, and `Mobility` agents are the results of several optimization campaigns.


Expand All @@ -44,7 +44,7 @@ cargo run --release -- [-h] [--host <ip:port>] [--config <json>]
> There are additional options for `--runtime` and visual representation of the snake (`--head`, `--tail`, `--color`).
> Run `cargo run --release -- -h` to see all the commandline options.
`config` defines the agent to be used (`Flood`, `Tree`, `Mobility`, `Random`) and configures the agents heuristic.
`config` defines the agent to be used (`Flood`, `Tree`, `Mobility`, `Random`) and configures the agent's heuristic.
The default config for the `Flood` agent is for example:

```json
Expand Down Expand Up @@ -93,13 +93,13 @@ cargo run --release --bin move -- [--config <json>] [--runtime] <json>
### Running tests & benchmarks

There are multiple tests for the different modules that can be run, as shown below.
For more information on unit-testing in rust see https://doc.rust-lang.org/book/ch11-01-writing-tests.html.
For more information on unit testing in Rust see https://doc.rust-lang.org/book/ch11-01-writing-tests.html.

```bash
cargo test -- [--nocapture] [testname]
```

There are several benchmarks that are ignored when running normal unit tests because they have a longer runtime.
Several benchmarks are ignored when running normal unit tests because they have a longer runtime.
They are executed with the release config with compiler and linker optimizations.

```bash
Expand Down

0 comments on commit 528da2e

Please sign in to comment.