A demo of a genetic algorithm being used to train an AI agent to complete an obstacle course. In this scenario, the agent must learn to change its color depending on the color of the next obstacle, which is detected by its front sensor. If the agent's color matches that of the next obstacle, it is able to pass through.
- Download GeneticAlgorithmDemo.rbxl
- Open the file in Roblox Studio
- Click the Run button (in the Test tab above the main window).
- Watch as your agent trains itself! Useful information is displayed in the output window.
- Roblox Studio - a Lua-based game development IDE
- Eric Stein
This project is licensed under the MIT License - see the LICENSE.md file for details