Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Halo Vortex

Evolution of a robot?

This topic is 6023 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m currently trying to write a simple evolution of NNs for a small 2D battleships, flying around. But it doesn''t seem to work because probably I don''t understand how to optimally specify fitness result. I let them drive and shoot, and at the end of a round, I use such a formula: fitness = damage done*(health left/health max); But in, say generation 4500, some didn''t even fire their guns, being stuck in the corners. I''ve got about 20 inputs with vectors of enemies, of closest bullet(to dodge it), distance to the borders, last movement and my out is 6 values: left-right (angle), forward, backward (velocity=forward-backward). Fire(>0.5) and Shield (>0.5). Can anybody recommend something? I''ve sucessfuly evolved a simple - go to point NN(With left-right, forward e.t.c). But then fitness was easy - more objects to gather-better NN. Plus 2inps, 2outs instead of 20-6 ;-(

Share this post


Link to post
Share on other sites
Advertisement
the probability of your NN will fire is rather low, so try mutating it alot, and do not allow any NN with fitness 0(in other words, any NN which doesn´t do damage) "reproduce"...Just rerandomize them...

Then keep on randomizing until you get a number NN''s that does damage, and then starts breeding new NN''s....

I am looking to do something with NN''s too, but not right now

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!