Sunday, November 29, 2009

Update

I've began writing a few encapsulation methods for some of the classes in the simulation, so that in the future, I can easily modify the simulation elements and goals. I wrote a BaseObject class that all objects with Neural Networks will extend so that I don't run the risk of messing something up with the network. It houses a method that all extending classes can overwrite to state what kinds of conditions need to be met in order to change the fitness level for that object. Hopefully this will make things easier to work with in the future.

I've decided to work on making the sweepers avoid the mines as well, since it allows for more inputs. I tried a little experimentation, by passing a direct offset value for the x and y coordinates to the closest mine, instead of just giving the network the normalized vector, hoping that this would allow the sweeper to take into account the distance to the mine, as well as the angle. I can't quite tell if it's working or not, because they tend to just sit still, avoiding the mines, but not going anywhere.

No comments:

Post a Comment