mirror of
https://github.com/csd4ni3l/fleet-commander.git
synced 2026-01-01 04:23:47 +01:00
Fix build not including torch and stable_baselines3, improve README
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -32,6 +32,12 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Install CPU only torch
|
||||||
|
run: pip3 install torch --index-url https://download.pytorch.org/whl/cpu
|
||||||
|
|
||||||
|
- name: Install stable_baselines3 after torch
|
||||||
|
run: pip3 install stable_baselines3
|
||||||
|
|
||||||
- name: Build Executable
|
- name: Build Executable
|
||||||
uses: Nuitka/Nuitka-Action@main
|
uses: Nuitka/Nuitka-Action@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
Fleet Commander is like Space Invaders but you are the enemy instead of the player.
|
Fleet Commander is like Space Invaders but you are the enemy instead of the player.
|
||||||
|
|
||||||
It uses AI (Reinforcement Learning) for the Player, and you, the Enemy has to defeat it.
|
It uses AI (Reinforcement Learning) for the Player(s), and You, the Enemy has to defeat it.
|
||||||
|
|
||||||
I know the game is too easy and is too simple, but please understand that doing RL isnt the easiest thing ever. I also did this so late so yeah.
|
I know the game is too easy and is too simple, but please understand that doing RL isn't the easiest thing ever. I also did this very late.
|
||||||
|
|
||||||
You can train yourself, or use the default model(10 million timesteps) which comes with the game.
|
You can train it yourself, or use the default model(10 million timesteps) which comes with the game.
|
||||||
|
|
||||||
# Install steps:
|
# Install steps:
|
||||||
|
|
||||||
|
**It's important to install torch before stable_baselines3, otherwise it will use the GPU version, which i never tested with, and probably wouldn't be much faster because i depend on CPU for the simulation**
|
||||||
|
|
||||||
## For uv
|
## For uv
|
||||||
- `uv sync`
|
- `uv sync`
|
||||||
- `uv pip install torch --index-url https://download.pytorch.org/whl/cpu`
|
- `uv pip install torch --index-url https://download.pytorch.org/whl/cpu`
|
||||||
|
|||||||
Reference in New Issue
Block a user