# Post Your ML-Agents Project

**URL:** https://discussions.unity.com/t/post-your-ml-agents-project/816756
**Category:** ML Agents
**Tags:** ML-Agents, Official
**Created:** [November 13, 2020, 6:13pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756 "2020-11-13T18:13:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jeffrey\_unity538](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/jeffrey_unity538/32/523208_2.png) [@jeffrey\_unity538](https://discussions.unity.com/u/jeffrey_unity538)
#### Post date: [November 13, 2020, 6:13pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/1 "2020-11-13T18:13:29Z")

</div>

Thread on community created ML-Agents projects. Please share any posts, images, videos or project links.

---

<div class="post-metadata">

### Author: ![mbaske](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mbaske/32/202288_2.png) [@mbaske](https://discussions.unity.com/u/mbaske)
#### Post date: [November 16, 2020, 8:13pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/2 "2020-11-16T20:13:44Z")

</div>

Hi, here are a couple of my project videos. There are source files available for most of them, but I haven’t really kept those up to date, some are using old versions of ML-Agents. Also, since I’m still finding my way around Unity, I would approach some things differently now than I did back when I created these projects…  
You can find more info in the video descriptions and a few other Unity and ML-Agents related videos on my channel.

[![](https://europe1.discourse-cdn.com/unity/original/4X/a/8/c/a8c9be9f652d93c9261a1f6e43b1fe8f5cfe8b9d.jpeg "Angry AI v3 - Battle Robots | Unity ML-Agents") ](https://www.youtube.com/watch?v=6rHBfuZEivc)

[![](https://europe1.discourse-cdn.com/unity/original/4X/7/6/8/76837443398237a43c63cc0296b0423538430418.jpeg "Attack of the Clones | Motorcycle Racing with Unity ML-Agents") ](https://www.youtube.com/watch?v=omCJTvZ3ZMY)

[https://github.com/mbaske/ml-motorcycles](https://github.com/mbaske/ml-motorcycles)

[![](https://europe1.discourse-cdn.com/unity/original/4X/6/a/0/6a022bb5d8a6feca28fe2f018c48b6b8cf4faca7.jpeg "Deep Learning Dogfight | Unity ML-Agents") ](https://www.youtube.com/watch?v=KzP-8lUQdmU)

[https://github.com/mbaske/ml-dogfight](https://github.com/mbaske/ml-dogfight)

[![](https://europe1.discourse-cdn.com/unity/original/4X/f/d/d/fddec2a9535beed2d58493104f3f511a6022eaad.jpeg "Deep Learning Hoverbike Race | Unity ML-Agents") ](https://www.youtube.com/watch?v=WvSyD8VFLFg)

[https://github.com/mbaske/ml-hover-bike-race](https://github.com/mbaske/ml-hover-bike-race)

[![](https://europe1.discourse-cdn.com/unity/original/4X/a/f/8/af8c7a78b1970dc0b1b70e7da13462f8e067edad.jpeg "Robot Ants v3 | Unity ML-Agents") ](https://www.youtube.com/watch?v=xeYvA6Ag0Hg)

[https://github.com/mbaske/robot-ants](https://github.com/mbaske/robot-ants)

---

<div class="post-metadata">

### Author: ![mbaske](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mbaske/32/202288_2.png) [@mbaske](https://discussions.unity.com/u/mbaske)
#### Post date: [November 16, 2020, 8:14pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/3 "2020-11-16T20:14:19Z")

</div>

[![](https://europe1.discourse-cdn.com/unity/original/4X/b/d/8/bd87cccbf46c45508a484b331775375227e2d872.jpeg "Competitive Self-Play | Unity ML-Agents") ](https://www.youtube.com/watch?v=9t4YBXZe7hc)

> [@Self-play with automatic curriculum? \[now with source & video\]](https://discussions.unity.com/t/797987):
>
> Hi, I’d be interested in your thoughts on automating curricula with symmetric self-play. I’m not super familiar with the theory behind this, so I might be reinventing the wheel here or miss some crucial aspects. I have two humanoid agents pitted against each other in a boxing match. Episodes are open-ended and can terminate in one of three ways: Whenever an agent strikes its opponent, I’m adding its fist velocity’s magnitude to a float field that was nulled on episode start. Once the accumula…

[https://github.com/mbaske/ml-selfplay-fighter](https://github.com/mbaske/ml-selfplay-fighter)

EDIT  
THANK YOU for featuring the self-play fighter on the Unity blog.  
I’m embarrassed to admit I only saw it this week, should really check the blog more often…

[![](https://europe1.discourse-cdn.com/unity/original/4X/4/7/d/47d65303519e2705b351c59a36406b3dacf6a70d.jpeg "Angry AI v2 - Battle Robots | Unity ML-Agents") ](https://www.youtube.com/watch?v=krzmg9eOeDM)

[https://github.com/mbaske/angry-ai](https://github.com/mbaske/angry-ai)

[![](https://europe1.discourse-cdn.com/unity/original/4X/6/6/e/66ed98725dce14a9e9de66c324eca3a0f408a81c.jpeg "Table Football Adversarial Self-Play | Unity ML-Agents") ](https://www.youtube.com/watch?v=_H11-7eXIko)

[https://github.com/mbaske/ml-table-football](https://github.com/mbaske/ml-table-football)

[![](https://europe1.discourse-cdn.com/unity/original/4X/2/1/5/21559b866c56fe010d1f671c1d5a6dfbb08832d5.jpeg "Deep Learning Race Driver | Unity ML-Agents") ](https://www.youtube.com/watch?v=gEf9V03HWv0)

[https://github.com/mbaske/ml-simple-driver](https://github.com/mbaske/ml-simple-driver)

[![](https://europe1.discourse-cdn.com/unity/original/4X/a/1/d/a1d39c72f39203f2a838059e9f98da83fe9a75b2.jpeg "Drone Collection | Unity ML-Agents") ](https://www.youtube.com/watch?v=MKDBcKNJVS4)

[https://github.com/mbaske/ml-drone-collection](https://github.com/mbaske/ml-drone-collection)

---

<div class="post-metadata">

### Author: ![mbaske](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mbaske/32/202288_2.png) [@mbaske](https://discussions.unity.com/u/mbaske)
#### Post date: [November 16, 2020, 8:14pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/4 "2020-11-16T20:14:57Z")

</div>

[![](https://europe1.discourse-cdn.com/unity/original/4X/8/6/0/8609287f61938bd3d5218e62014b9b14776c0b96.jpeg "Explorer Drone | Unity ML-Agents") ](https://www.youtube.com/watch?v=3-4_-FBDr8Q)

[![](https://europe1.discourse-cdn.com/unity/original/4X/3/b/e/3be03e2352151c742b001295e1a157d3e16ccfb1.jpeg "Angry AI v1 - Battle Robots [Reupload] | Unity ML-Agents") ](https://www.youtube.com/watch?v=B_cGPis6eDk)

---

<div class="post-metadata">

### Author: ![jeffrey\_unity538](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/jeffrey_unity538/32/523208_2.png) [@jeffrey\_unity538](https://discussions.unity.com/u/jeffrey_unity538)
#### Post date: [November 17, 2020, 10:09pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/5 "2020-11-17T22:09:04Z")

</div>

wow @mbaske !

---

<div class="post-metadata">

### Author: ![CallieChaos](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@CallieChaos](https://discussions.unity.com/u/CallieChaos)
#### Post date: [December 29, 2020, 1:47am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/6 "2020-12-29T01:47:17Z")

</div>

I’ve put together a project that makes the machine learning process into the game itself! I’ve set up a twitch stream where you can watch creatures learn to navigate their environment to reach an exit and bet game coins on which ones you think will make it the furthest. It’s running at [Twitch](https://twitch.tv/orbward)

---

<div class="post-metadata">

### Author: ![akTwelve](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/aktwelve/32/146592_2.png) [@akTwelve](https://discussions.unity.com/u/akTwelve)
#### Post date: [December 29, 2020, 5:12am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/7 "2020-12-29T05:12:10Z")

</div>

@mbaske Your project videos are always incredible. Also, that boxing match is hilarious!

---

<div class="post-metadata">

### Author: ![mbaske](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mbaske/32/202288_2.png) [@mbaske](https://discussions.unity.com/u/mbaske)
#### Post date: [December 29, 2020, 9:52am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/8 "2020-12-29T09:52:33Z")

</div>

> [@akTwelve](#):
>
> @mbaske Your project videos are always incredible. Also, that boxing match is hilarious!

Thanks!

---

<div class="post-metadata">

### Author: ![Adam\_Streck](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/adam_streck/32/93956_2.png) [@Adam\_Streck](https://discussions.unity.com/u/Adam_Streck)
#### Post date: [January 2, 2021, 4:47pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/9 "2021-01-02T16:47:59Z")

</div>

Not as impressive as the above projects :), but I wrote a [tutorial on self driving car racing.](https://towardsdatascience.com/reinforcement-learning-a-self-driving-car-ai-in-unity-60b0e7a10d9e)

crazywastefulgiantschnauzer

(already made September 2019, I just updated it now to 1.0.0 ML-Agents).

![6680107--765583--upload_2021-1-2_17-50-7.png](https://europe1.discourse-cdn.com/unity/original/4X/8/6/e/86ec17d511215c3d278bc39d929882fe6427b32a.png)

---

<div class="post-metadata">

### Author: ![kodobolt](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@kodobolt](https://discussions.unity.com/u/kodobolt)
#### Post date: [January 4, 2021, 11:03am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/10 "2021-01-04T11:03:53Z")

</div>

Hi everyone! I’ve been playing with ML agents again over the holidays and trying to see if I can build a small RTS game where units are trained agents.

Duel training with self-play:

[![](https://europe1.discourse-cdn.com/unity/original/4X/1/8/7/187b5a8d734b9d20334bfcb98c2e700b99b8984f.jpeg "RL RTS - Duel training with self-play") ](https://www.youtube.com/watch?v=AZYF6ocxnno)

Resource gathering:

[![](https://europe1.discourse-cdn.com/unity/original/4X/f/1/4/f14501f68ba48e862787e39c27004ff26566fff5.jpeg "RL RTS - Basic resource gathering with "smell" maps") ](https://www.youtube.com/watch?v=JjV3GbrP6nI)

I’m experimenting with giving player control over high-level policies (e.g. which resource to gather, whether to prioritize attack or survival), curriculum learning (I’ve set up a system of lessons and scenarios to learn complex behavior step by step), various perception sensors (e.g. basic “range” sensor with OverlapSphere, “smell map” sensor with decaying influence that could give rough pathfinding data).

My overall goal is to build a small prototype/proof of concept to understand how RL can be part of a designer’s toolbox and learn best practices along the way.

I started looking into ML for Unity several years ago but had no time to fully flesh out something. I initially tried to set up my own interface to python, then the first version of ML-Agents came out but it was a bit rough around the edges. I’m very impressed with how far it has come and found it quite easy to understand and use. Thanks for making it!

---

<div class="post-metadata">

### Author: ![aureliantactics](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@aureliantactics](https://discussions.unity.com/u/aureliantactics)
#### Post date: [January 19, 2021, 6:49pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/11 "2021-01-19T18:49:33Z")

</div>

I’m working on getting Unity ML to help train the AI for a tactics game (turn based strategy game). First I did TicTacToe. Code available on my [github](https://github.com/AurelianTactics/TictactoeUnityML).

 ![](https://europe1.discourse-cdn.com/unity/original/4X/b/6/0/b6033bf3df4b74cfa521f36b1e6e15639cae1ddf.png)

Next I implemented a GridWorld mini-game in the game.

[![](https://europe1.discourse-cdn.com/unity/original/4X/2/0/6/2068276dc1bb06941e914c0f69f8ebf8cb7561f5.jpeg "Aurelian Tactics Gridworld") ](https://www.youtube.com/watch?v=IpHxccio_tg)

.

I tried to do a more advanced mini-game (one vs. one duel) but it ran way too slowly for the agent to learn anything. I’m working on speeding up the code. I can’t duplicate the game board and have many games run in parallel (like TicTacToe and the Unity examples) without a lot of changes to my code. I can get by without having to render anything so I’m trying to do some research to see how to go about creating a ‘fast’ mode to the game.

---

<div class="post-metadata">

### Author: ![Roboserg](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/roboserg/32/488615_2.png) [@Roboserg](https://discussions.unity.com/u/Roboserg)
#### Post date: [January 23, 2021, 5:52pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/12 "2021-01-23T17:52:52Z")

</div>

RoboLeague - a car soccer environment inspired by Rocket League for deep reinforcement learning experiments in an adversarial self-play setting. The project is open source - [GitHub - roboserg/RoboLeague: A car soccer environment inspired by Rocket League for deep reinforcement learning experiments in an adversarial self-play setting.](https://github.com/roboserg/RoboLeague)

udylxv  
pq71qt

---

<div class="post-metadata">

### Author: ![dhyeythumar](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@dhyeythumar](https://discussions.unity.com/u/dhyeythumar)
#### Post date: [January 24, 2021, 7:54am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/13 "2021-01-24T07:54:50Z")

</div>

Hi everyone! I am experimenting with ML-Agents on Unity’s Boat Attack environment. I have reduced the environmental objects for a smooth training process.  
To project is open source and to get the assets and build versions of this environment, check out the following links:  
Github env build repo - [GitHub - dhyeythumar/BoatAttack-with-ML-Agents-build-versions: This repo contains various build versions of my Boat Attack with ML-Agents repo.](https://github.com/Dhyeythumar/BoatAttack-with-ML-Agents-build-versions)  
Github env assets repo - [GitHub - dhyeythumar/BoatAttack-with-ML-Agents: Applying ML-Agents to the Unity's Boat Attack env. ⛵️](https://github.com/Dhyeythumar/BoatAttack-with-ML-Agents)

Check out the following video of the trained agent:

[![](https://europe1.discourse-cdn.com/unity/original/4X/5/d/b/5db199fe0e2420f5b1822f34f823c8ce6376bb76.jpeg "Boat Attack | Navigation strategies learned by an ML-Agent | Reinforcement Learning") ](https://www.youtube.com/watch?v=8N1f70Wxowk)

The following video contains the complete training process streamed from Google Colab to the twitch server:

[![](https://europe1.discourse-cdn.com/unity/original/4X/e/a/2/ea285472d8f776299099eff0f9fadcf29a690bc1.jpeg "Boat Attack | Watch the ML-Agents getting trained | Reinforcement Learning | @10x speed") ](https://www.youtube.com/watch?v=T0Oxb3aliwQ)

---

<div class="post-metadata">

### Author: ![mbaske](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/mbaske/32/202288_2.png) [@mbaske](https://discussions.unity.com/u/mbaske)
#### Post date: [January 26, 2021, 11:50am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/14 "2021-01-26T11:50:16Z")

</div>

Hi, you can now find updated “Angry AI” source files working with the latest (1.7.2-preview) ML-Agents release on Github.  
The project uses imitation learning, multi-stage training, hierarchical/tiered agent control and grid sensor observations.

[https://github.com/mbaske/angry-ai](https://github.com/mbaske/angry-ai)

[![](https://europe1.discourse-cdn.com/unity/original/4X/3/6/1/361d83248a53269cdb521ffe1e7e58c1adab8667.jpeg "Angry AI - Team Deathmatch | Unity ML-Agents") ](https://www.youtube.com/watch?v=7YYwERuy-w4)

---

<div class="post-metadata">

### Author: ![unity\_vS2z9d1vWrMH-Q](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/unity_vs2z9d1vwrmh-q/32/471067_2.png) [@unity\_vS2z9d1vWrMH-Q](https://discussions.unity.com/u/unity_vS2z9d1vWrMH-Q)
#### Post date: [January 28, 2021, 9:37am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/15 "2021-01-28T09:37:24Z")

</div>

WWWoooWW!! Great job guys! Here you are another one. An Air Hockey simulator with 12 brains trained using self-play. It is available in the play store.

[![](https://europe1.discourse-cdn.com/unity/original/4X/3/3/0/330f2ac20907a6a506bd04c79f6d1852451d901c.jpeg "AI Air Hockey 1.0 - Machine Learning Games") ](https://www.youtube.com/watch?v=t1CuNx1JS14)

[https://play.google.com/store/apps/details?id=com.OnMyOwnStudio.AIAirHockey](https://play.google.com/store/apps/details?id=com.OnMyOwnStudio.AIAirHockey)

---

<div class="post-metadata">

### Author: ![Attack\_Potato](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Attack\_Potato](https://discussions.unity.com/u/Attack_Potato)
#### Post date: [February 1, 2021, 9:52pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/16 "2021-02-01T21:52:50Z")

</div>

I’ve been experimenting with agent flocking behaviors:

[![](https://europe1.discourse-cdn.com/unity/original/4X/b/e/c/becd40bf9ec87f498456d980c5abcfd1985221a8.jpeg "Unity ML Agents Fish New Environment") ](https://www.youtube.com/watch?v=LQCvZIkt7WM)

[Demo Link](https://attackpotatogames.itch.io/ml-agents-boids-fish)

---

<div class="post-metadata">

### Author: ![Attack\_Potato](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Attack\_Potato](https://discussions.unity.com/u/Attack_Potato)
#### Post date: [May 20, 2021, 12:54am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/17 "2021-05-20T00:54:55Z")

</div>

[![](https://europe1.discourse-cdn.com/unity/original/4X/7/9/b/79b3fff8c60283d2e140060288aef5f8e645ec15.jpeg "Where neon goes to die windows beta") ](https://www.youtube.com/watch?v=um7PkvgZj18)

Not the most advanced agents, but it works with raytracing.

[Download Link](https://attackpotatogames.itch.io/where-neon-goes-to-die)

---

<div class="post-metadata">

### Author: ![PinataMostGrim](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@PinataMostGrim](https://discussions.unity.com/u/PinataMostGrim)
#### Post date: [May 29, 2021, 5:22pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/18 "2021-05-29T17:22:42Z")

</div>

There are some really cool projects in this thread 😄

@mbaske I’m a big fan of the exploration drone. It reminds me of the mapping drones in Prometheus, which I thought were the coolest thing when I saw it.

@aureliantactics A few of your Medium articles were really good references while I was learning to use the ML toolkit. Thanks for writing them!

Here are a few of the projects I’ve used ML-Agents for.

This is an agent that controls a physics-based MKV:

[![](https://europe1.discourse-cdn.com/unity/original/4X/0/4/e/04ee3eb8bf0663c3ef1639020b56a005d6bbc746.jpeg "MKV.20200514.184241 - benchmark\_00") ](https://www.youtube.com/watch?v=xzUZWXadeDE)

Here is an agent that tries to use the MKV to intercept incoming projectiles:

[![](https://europe1.discourse-cdn.com/unity/original/4X/6/9/7/697e2f71dd9acf4204058cfa817c8709d8057e3d.jpeg "MKV.20190807.100823 - sentry") ](https://www.youtube.com/watch?v=mB9eInHOBPE)

This one is a variation of Boids that tries to maintain a certain distance from a target point:

[![](https://europe1.discourse-cdn.com/unity/original/4X/e/3/c/e3c425ff73b11ea23ac2699d3e8b947dad14c1c2.jpeg "Swarm.20200514.184936 - benchmark") ](https://www.youtube.com/watch?v=o6D4PtzJhSI)

---

<div class="post-metadata">

### Author: ![flimflamm](https://avatars.discourse-cdn.com/v4/letter/f/5e9695/32.png) [@flimflamm](https://discussions.unity.com/u/flimflamm)
#### Post date: [June 2, 2021, 7:24am UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/19 "2021-06-02T07:24:36Z")

</div>

A happy mile-stone in my un-named project; VR interaction with agents (even during live training!)

limpfilthyborer  
aliveequatorialaddax  
massivedecimalgrayling

Still massively unfinished, but I think this shows extreme promise.

---

<div class="post-metadata">

### Author: ![zeemanj](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/zeemanj/32/114696_2.png) [@zeemanj](https://discussions.unity.com/u/zeemanj)
#### Post date: [August 24, 2021, 1:17pm UTC](https://discussions.unity.com/t/post-your-ml-agents-project/816756/20 "2021-08-24T13:17:07Z")

</div>

My first Unity project using ML-Agents.

The game is a agility game, where you have to try to get a ball into an arc by moving the board.  
This can be very frustrating so I wanted to give it a try with Unity ML-Agents after following the excellent Hummingbirds tutorial by Immersive Limit LLC (see [ML-Agents: Hummingbirds - Unity Learn](https://learn.unity.com/course/ml-agents-hummingbirds)).

The agent moves the board, rotating it either to the left, right, forward or backward and gets a reward when a ball enters the arc.

**1 Ball**  
 ![](https://europe1.discourse-cdn.com/unity/original/4X/7/5/e/75e5942949e08fe28e37ce52cae5fd77516571c3.png)  
After several tries I finally succeeded. ML-Agents is able to play the game, with 1 ball, in an average time of less then 6 seconds, amazing. See a video of a game at

[![](https://europe1.discourse-cdn.com/unity/original/4X/8/5/c/85cd8e3120d136bfbae81fe478522d8897fdc7cd.jpeg "Agility game 1 ball") ](https://www.youtube.com/watch?v=gKZBCa-mwug)

.

I learned to keep to rewards simpel, I started with a difficult reward schema but the Agent failed to learn.  
The key to succes was to use the ‘Ray Perception Sensor 3D’ component. That made a huge difference for the better.

The training run of 4 million episodes takes about 1 hour on my machine.

**2 Balls**  
 ![](https://europe1.discourse-cdn.com/unity/original/4X/3/b/c/3bcb6e745b774536d78a1ae9a3b9ac6f2dbf15f2.png)

Training (4 million steps) took 147 minutes. It takes the agent an average of 73 seconds.  
See a video of a game at

[![](https://europe1.discourse-cdn.com/unity/original/4X/5/9/f/59fef8ff6e224291299361400e5ad3a2c059202e.jpeg "Agility game 2 balls") ](https://www.youtube.com/watch?v=hMxvOkps6Cw)

(first win is at 00:11)

**3 Balls**  
 ![](https://europe1.discourse-cdn.com/unity/original/4X/9/a/2/9a2a46e002de511d27377fc30c26972a41069773.png)  
Training (12 million steps) took 500 minutes. It takes the agent an average of 1054 seconds to win.  
See a video of a game at

[![](https://europe1.discourse-cdn.com/unity/original/4X/5/d/e/5de438afd071de89ba9b54ca131fc4166c124139.jpeg "Agility game 3 balls") ](https://www.youtube.com/watch?v=4n_t4zwsSpg)

. The first 00:05:30 are trimmed. The first win is at 00:10 (actual time at 05:40).  
Not bad, but it would be nice to improve this. Still I can’t win the 3-ball game in less than this time, too frustrating. To improve the ML Agents performance in playing the game it may need a bit of curiosity.

The Unity project is at [GitHub - jpzpj/Unity-ML-Agility-Game: An agility game playable by Unity Machine Learning](https://github.com/jpzpj/Unity-ML-Agility-Game)

[Next page](https://discussions.unity.com/t/post-your-ml-agents-project/816756.md?page=2)
