Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
fix readme format problems
Pristar4 authored Jul 13, 2023
1 parent 03b032e commit 0882267
Showing 1 changed file with 32 additions and 24 deletions.
56 changes: 32 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -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">

@@ -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>

0 comments on commit 0882267

Please sign in to comment.