The Learning Loop by OrciFried

[raw]
made by OrciFried for Ludum Dare 47 (COMPO)

title.gif

A Game of Reinforcement Learning

Play it here! :heart:

You are an engineer tasked with optimizing artificial intelligent agents in the completion of spatial navigation tasks to satellites. You have control over the time scale, which aspects of the environment triggers rewards in the agents, and when you want to select the best agent for testing (this is how you clear a level)--

lvlClear.gif

The inputs the agent has available are 5 sensors that calculates distances to objects in front of it (see the lines). The agent's output is to rotate and/or move forward. The performance (or fitness) of the best performing agent can be seen in the bottom right corner and is modulated by which factors rewards the agents in their actions.

For example, rewarding agents for the distance to the target means that the shorter the agents' distance is to the satellite at the end of the learning loop, the better its performance is. So be sure to decide how to reward the AIs or they might not even understand the task! :scream:

Every time 15 in-game seconds (can be scaled by you) go by, the agents are reset and the bottom half performing agents get updated neural networks through a mutation algorithm.

training.gif

Warning: There isn't any definite ending but just imagine this very elaborate ending where you realise that you are an agent just like them - wooow :upside_down:

I hope you will enjoy the game and I look forward to your feedback! :heart:

``` Changelog: 5th October, 8:12: Known bug of disappearing agents after first iteration. Reason unknown. Added Windows build. Not working there either. Bug fix waiting.

```

Play the game (HTML5) and see the source code here:

Ratings

Given 0🗳️ 0🗨️

Feedback

sriram070
05. Oct 2020 · 03:33 UTC
Great concept and execution. At style was also amazing. But a lot of the time the AI agents would go of the screen and then nothing would happen
Ividusk
05. Oct 2020 · 03:39 UTC
Graphics and music are really nice! Perfect for the game.

This idea is fantastic - however after a few seconds, all the agents disappear on me. I'm not sure if I'm doing something wrong or if it's a bug, but it's a shame because what I did see was really cool!
🎤 OrciFried
05. Oct 2020 · 05:31 UTC
That is definitely not supposed to happen :sweat_smile: But thank you :blush:
FabDynamic
06. Oct 2020 · 21:30 UTC
Wow the visual aesthetic on this game is through the roof retro-amazing. And I can't believe that its about training AI! I tried to get my best agent to run to the end but it never showed up (probably the same problem the other people are experiencing). You probably know this already but if you have time you can fix bugs and re upload them and its still a valid submission to the compo. Give me a buzz here if you have any fixes for us and thanks for making this!

Update: Also the source link is broken. I was thinking about grabbing a copy and seeing if I could figure out what was wrong :) Let me know if I can help.
🎤 OrciFried
11. Oct 2020 · 08:44 UTC
@fabdynamic that is absolutely wonderful, thank you! I haven't had time the past week but I'll try to update both the game and the source code tonight so if you want, it'll be there ❤️