mikeworth / robonucleicacid Goto Github PK
View Code? Open in Web Editor NEWEvolving robocode bots with a genetic algorithm
License: GNU Lesser General Public License v3.0
Evolving robocode bots with a genetic algorithm
License: GNU Lesser General Public License v3.0
In the if statement commands, fulfilling the criteria causes the following code to be skipped, which is the opposite of how the Java code works.
https://github.com/MikeWorth/RoboNucleicAcid/blob/master/src/rna/EvolveBot.java#L128
https://github.com/MikeWorth/RoboNucleicAcid/blob/master/src/rna/EvolveBot.java#L132
https://github.com/MikeWorth/RoboNucleicAcid/blob/master/src/rna/EvolveBot.java#L136
Also, in the current implementation, failing an if statement causes all of the remaining code to be skipped, which I don't think was your intention. I recommend removing the skipping
variable and instead looping through the gene
array until a 0 is encountered, e.g.:
if(workingValue==gene[++i])
{
while (gene[i + 1] != 0)
{
i += 1;
}
}
This happened when I upgraded to the new robocode from the repo version. It seems to be there for most purposes, but not for the robot data directories
Without this, genomes often tend to get very long which impacts breeding times. Ultimately it will also lead to more elegant, efficient behaviours
It would be nice to make this more expressive; maybe change the structure to something else? Maybe serialise that for breeding?
Keeping thousands of generations of family tree seems a bit pointless; it isn't causing many issues atm but using GBs of ram for the hell of it's not a great idea
The ahead(1) hack is ugly, it really needs sorting out.
SittingDuck somehow sits there without disqualification, what is it doing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.