-
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.
added WIP AI scene for using ml agents to train the snakes
This commit includes various changes to improve and add functionality to the Snake game. The specific changes include: - Addition of the ml-agents package for establishing a Machine Learning environment. - Modification of tile prefab to adjust sprite and size. - Added a wrap feature in the GameManager, allowing the snake to wrap around the board. - Changes in SnakeController allowing the control of snake's movement with the newly added wrap feature. - Changes made to various materials like Food, None and Snake to change their respective shaders. - Modified the GameManager script in the Main Unity scene and made changes to the board's settings. - The width, height and snake movement settings of the GameManager script have been adjusted. - Update in Scene objects’ rotation and position. - Changes to BoardDisplay, TileDisplay and SpriteBoardDisplay to assist in visual updates of the game state.
- Loading branch information
Showing
23 changed files
with
1,593 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
{"count":1,"self":146.5437824,"total":146.5523294,"children":{"InitializeActuators":{"count":12,"self":0.0010006,"total":0.0010006,"children":null},"InitializeSensors":{"count":12,"self":0.0015075,"total":0.0015075,"children":null},"AgentSendState":{"count":395,"self":0.0015107999999999999,"total":0.0015107999999999999,"children":null},"DecideAction":{"count":395,"self":0.0040206999999999994,"total":0.0040206999999999994,"children":null},"AgentAct":{"count":395,"self":0.0005068,"total":0.0005068,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1688511292","unity_version":"2023.1.2f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.1.2f1\\Editor\\Unity.exe -projectpath C:\\Users\\felix\\SnakeGame -useHub -hubIPC -cloudEnvironment production","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.3.0-exp.3","scene_name":"AI","end_time_seconds":"1688511438"}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
{"count":1,"self":38.4066496,"total":38.4183148,"children":{"InitializeActuators":{"count":1,"self":0.0009992,"total":0.0009992,"children":null},"InitializeSensors":{"count":1,"self":0.0015080999999999998,"total":0.0015080999999999998,"children":null},"AgentSendState":{"count":332,"self":0.0055420999999999995,"total":0.0055420999999999995,"children":null},"DecideAction":{"count":332,"self":0.0025223999999999997,"total":0.0025223999999999997,"children":null},"AgentAct":{"count":332,"self":0.0010927999999999999,"total":0.0010927999999999999,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1688511153","unity_version":"2023.1.2f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.1.2f1\\Editor\\Unity.exe -projectpath C:\\Users\\felix\\SnakeGame -useHub -hubIPC -cloudEnvironment production","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.3.0-exp.3","scene_name":"Main","end_time_seconds":"1688511192"}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.