Topic: Neural network genetic algorithm ddrace bot (by Paszczak)
Hey there!
I want to present you a DDRace bot, which learns to play a race map by itself, using a neural network genetic algorithm!
Important: It is entirely done by Paszczak, I only write this post for him because he asked me to. I did nothing to the bot itself.
This is still work-in-progress, but developing quite fast into a very appreciable project. He implemented a genetic algorithm into the teeworlds client, enabling it to learn how to play race on it's own.
For now, only the distance from the starting point is used to calculate the fitness, so it can only finish maps which go straight in one direction, not like Aip-Gores. If the distance from the spawn didn't increase for a defined amount of time, it will reset (kill) and go over to the next simulation. 100 simulations make one generation. After 4-5 generations, you can see a significant improvement.
The bot learns in real-time right while playing a map, so it takes quite long to gather some skill. But waiting is worth I can tell you ^-^
If you are interested in seeing the bot doing it's job, there is a twitch livestream online from time to time where you can watch it. You can also chat with the author of it using the twitch chat
WATCH IT HERE! http://www.twitch.tv/twneuronnetwork
If you are curious how it works, this video might we very interesting for you: https://www.youtube.com/watch?v=qv6UVOQ0F44. It is something similar to this bot for Super Mario.
I will keep you up-to-date about any further development, this is definitely a very interesting idea.
SOURCE CODE: https://github.com/paaszczak/teeworlds-neural-network