Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Pristar4 committed Jul 13, 2023
2 parents d8aabb4 + 0882267 commit 781fd07
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 29 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: DenverCoder1/doxygen-github-pages-action@v1
- uses: DenverCoder1/doxygen-github-pages-action@v1.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/html
github_token: ${{ secrets.token }}
58 changes: 33 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<a href="https://github.com/Pristar4/SnakeGame">

[//]: # (This is for the doxygen)

[//]: # (![logo]&#40;images/logo.png&#41;)
<img src="images/logo.png" alt="Logo" width="80" height="80">

Expand All @@ -28,7 +29,7 @@
<p align="center">
Training an AI to play the classic Snake Game!
<br />
<a href="https://github.com/Pristar4/SnakeGame"><strong>Explore the docs »</strong></a>
<a href="https://pristar4.github.io/SnakeGame"><strong>Explore the docs »</strong></a>
<br />
<br />
<a href="https://github.com/Pristar4/SnakeGame">View Demo</a>
Expand Down Expand Up @@ -117,46 +118,53 @@ Install the following software:
Perform the following steps to set up and run the project:

1. Clone the repo
```
git clone https://github.com/Pristar4/SnakeGame.git
```
```
git clone https://github.com/Pristar4/SnakeGame.git
```
2. Set up the virtual environment in the mk-agents folder under SnakeGame\ml-agents by running:
```
python -m venv ./venv
python -m venv ./venv
```
3. Activate your virtual enviroment:
```
.\venv\Scripts\activate
```
4. Install ML-agents within the virtual environment by following the Getting Started in the
ml-agents rep
5. ```
5.
```
python.exe -m pip install --upgrade pip
```
6. ```
pip install torch -f https://download.pytorch.org/whl/torch_stable.html
```
7. ```
pip install tensorboard
```
7. ```
```
6.
```
pip install torch -f https://download.pytorch.org/whl/torch_stable.html
```
7.
```
pip install tensorboard
```
8.
```
pip install -e ./ml-agents-envs
```
8. ```
```
9.
```
pip install -e ./ml-agents
```
9. ```
pip install tensorboard
```
9. Start the training by running:
```
mlagents-learn config/ppo/Snake.yaml --run-id=trainingRun01
```
10. Open a second terminal and start TensorBoard to monitor training.
10.
```
pip install tensorboard
```
11. Start the training by running:
```
mlagents-learn config/ppo/Snake.yaml --run-id=trainingRun01
```
12. Open a second terminal and start TensorBoard to monitor training.
```
tensorboard --logdir results
```
11. Enter the Play mode in the Unity editor in the AI scene
13. Enter the Play mode in the Unity editor in the AI scene
under ``SnakeGame\Assets\SnakeGame\_Levels\AI``.
<p align="right">(<a href="#readme-top">back to top</a>)</p>
Expand Down

0 comments on commit 781fd07

Please sign in to comment.