Skip to content

Commit

Permalink
added ml-agents . new SnakeAgent
Browse files Browse the repository at this point in the history
refactored whole project parts.
  • Loading branch information
Pristar4 committed Jul 8, 2023
1 parent 70de465 commit 2de70ec
Show file tree
Hide file tree
Showing 34 changed files with 64,081 additions and 663 deletions.
2 changes: 1 addition & 1 deletion Assets/ML-Agents.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/ML-Agents/Timers.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/ML-Agents/Timers/AI_timers.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"count":1,"self":123.0405504,"total":123.0444538,"children":{"InitializeActuators":{"count":12,"self":0.0005032,"total":0.0005032,"children":null},"InitializeSensors":{"count":12,"self":0.0005027,"total":0.0005027,"children":null},"AgentSendState":{"count":245,"self":0.001005,"total":0.001005,"children":null},"DecideAction":{"count":245,"self":0.0009995,"total":0.0009995,"children":null},"AgentAct":{"count":245,"self":0.00089399999999999994,"total":0.00089399999999999994,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1688789627","unity_version":"2023.1.3f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.1.3f1\\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":"1688789750"}}
{"count":1,"self":250.3015936,"total":332.07564249999996,"children":{"InitializeActuators":{"count":16,"self":0.0025612,"total":0.0025612,"children":null},"InitializeSensors":{"count":16,"self":0,"total":0,"children":null},"AgentSendState":{"count":11468,"self":0.1393087,"total":0.90597469999999991,"children":{"CollectObservations":{"count":45872,"self":0.2414517,"total":0.2414517,"children":null},"WriteActionMask":{"count":45872,"self":0.0393311,"total":0.0393311,"children":null},"RequestDecision":{"count":45872,"self":0.1271897,"total":0.48588319999999996,"children":{"AgentInfo.ToProto":{"count":43016,"self":0.075718899999999992,"total":0.3586935,"children":{"GenerateSensorData":{"count":43016,"self":0.28297459999999997,"total":0.28297459999999997,"children":null}}}}}}},"DecideAction":{"count":11468,"self":68.5686592,"total":68.5686577,"children":null},"AgentAct":{"count":11468,"self":12.278715199999999,"total":12.296857,"children":{"AgentInfo.ToProto":{"count":1236,"self":0.003473,"total":0.0181418,"children":{"GenerateSensorData":{"count":1236,"self":0.0146688,"total":0.0146688,"children":null}}}}}},"gauges":{"SnakeAi.CumulativeReward":{"count":1314,"max":79.2000046,"min":-10.7699995,"runningAverage":10.3244171,"value":29.420002,"weightedAverage":24.8987827}},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1688834944","unity_version":"2023.1.3f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2023.1.3f1\\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":"1688835276"}}
2 changes: 1 addition & 1 deletion Assets/ML-Agents/Timers/AI_timers.json.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Assets/ML-Agents/Timers/Main_timers.json

This file was deleted.

8 changes: 8 additions & 0 deletions Assets/SnakeGame/FX.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/SnakeGame/FX/Snake.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/SnakeGame/FX/Snake/Prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 86 additions & 0 deletions Assets/SnakeGame/FX/Snake/Prefabs/SnakeArrow.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3901235777154034643
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9215421267644458092}
- component: {fileID: 1575543648683063078}
m_Layer: 0
m_Name: SnakeArrow
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &9215421267644458092
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3901235777154034643}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 3, y: 3, z: 3}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: -1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1575543648683063078
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3901235777154034643}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: aad3e614bdd340e4e8c0caa096525dd0, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 1, y: 1}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Assets/SnakeGame/FX/Snake/T_SnakeDirection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
137 changes: 137 additions & 0 deletions Assets/SnakeGame/FX/Snake/T_SnakeDirection.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2de70ec

Please sign in to comment.