-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac80eae
commit cb50acc
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# ark_nova_stats | ||
|
||
A collection of tools and services for analyzing Ark Nova games. | ||
|
||
See the README.md in individual directories. | ||
|
||
## API | ||
|
||
This is a webapp designed to store Ark Nova replays, in BGA format. | ||
|
||
To run, do: | ||
```bash | ||
docker compose -f docker-compose.yaml -f docker-compose.override.yaml up | ||
``` | ||
|
||
To deploy to production: | ||
|
||
```bash | ||
cd api | ||
fly deploy | ||
``` | ||
|
||
## bga_log_parser | ||
|
||
A Python library used to parse Ark Nova gameplay logs in BGA format. | ||
|
||
## emu_cup | ||
|
||
A set of scripts I'm using to analyze replays from the Emu Cup, an Ark Nova tournament between high-ranked players on BGA. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# bga_log_parser | ||
|
||
A Python library to parse Ark Nova gameplay logs in BGA format. | ||
|
||
First, download the gameplay logs in JSON format somewhere on your computer. Then: | ||
|
||
```python | ||
import json | ||
from ark_nova_stats.bga_log_parser.game_log import GameLog | ||
|
||
with open('path/to/my/replay.json', 'r') as f: | ||
log = GameLog(**json.loads(f.read().strip())) | ||
|
||
print(log.winner) | ||
``` |