Difference between revisions of "Tie Feeder Tutorial"

From WikiManual
Jump to: navigation, search
m
Line 1: Line 1:
 
 
Here is Tie bot 1
 
Here is Tie bot 1
  
Line 8: Line 7:
 
cond *.vel 40 < start 40 *.vel sub .up store stop
 
cond *.vel 40 < start 40 *.vel sub .up store stop
  
end Available as Tie Bot 1.txt
+
end Available as [[TieBotstxt#Tie-Bot1.txt|Tie-Bot1.txt]]
  
.
+
[[TieBotstxt#Tie-Bot2.txt|Tie-Bot2.txt]]
  
.
+
[[TieBotstxt#Tie-Bot3.txt|Tie-Bot3.txt]]
  
a little to see what would happen if you were to do either of those things. Just play around a little before you come back to see how I plan to fix this.
+
[[TieBotstxt#Tie-Bot4.txt|Tie-Bot4]] [[TieBotstxt#Tie-Bot4.txt|Tie-Bot4]] a little to see what would happen if you were to do either of those things. Just play around a little before you come back to see how I plan to fix this.
  
 
I will eventually use a similar method to that employed by Simplebot but for the moment I will leave reproduction the way it is. You will see why a little later on.
 
I will eventually use a similar method to that employed by Simplebot but for the moment I will leave reproduction the way it is. You will see why a little later on.
Line 20: Line 19:
  
  
.then run the simulation again.
+
.then run the simulation again.
  
 
Cond Start  
 
Cond Start  
Line 28: Line 27:
 
This is a really stupid gene but demonstrates some of the difficulties associated with tie feeders.
 
This is a really stupid gene but demonstrates some of the difficulties associated with tie feeders.
  
+
  
 
Obviously we need to be a little more careful about when and where we shoot ties. We also need a way to feed through the ties once they are attached. First we need to add a condition or two to the gene that fires the ties. Change the gene to this. Note that we now have 10 eye cells so you will also need to change the other instances of .refeye to 10 as well.
 
Obviously we need to be a little more careful about when and where we shoot ties. We also need a way to feed through the ties once they are attached. First we need to add a condition or two to the gene that fires the ties. Change the gene to this. Note that we now have 10 eye cells so you will also need to change the other instances of .refeye to 10 as well.
Line 36: Line 35:
 
.tie store
 
.tie store
 
stop
 
stop
.
+
.
  
 
cond *.numties 0 > start -1 .tieloc store -1000 .tieval store  
 
cond *.numties 0 > start -1 .tieloc store -1000 .tieval store  
Line 74: Line 73:
 
*.eye5 77 !=
 
*.eye5 77 !=
  
.
+
.
  
 
+
We still get the occasional two robots joined together by red ties but they are few and far between now. Another problem is in the way that Tie Bot breeds. We get large chains of young ones all fixed together so they are les effective than robots such as Devincio Eversor (also included in the tutorial directory). Try running Tie Bot 7 against [[Devincio Eversor]]
  
 
.tie store
 
.tie store
Line 85: Line 84:
 
.deltie store
 
.deltie store
 
stop
 
stop
This combination forces the newly born robot to tie to its parent with a number 1 tie, then in the following cycle, to delete it again. This is a similar method to that used in Simplebot. This version of Tie Bot can be found as .in the tutorial directory.
+
This combination forces the newly born robot to tie to its parent with a number 1 tie, then in the following cycle, to delete it again. This is a similar method to that used in Simplebot. This version of Tie Bot can be found as .in the tutorial directory.
  
  
Line 103: Line 102:
 
14 56 store
 
14 56 store
  
Then we will go through the whole genome and replace all of the .refeye condition numbers with *56. That way we will only have to change one value from now on when we add any eye cells. You can find this version of Tie Bot as .in the tutorial directory.
+
Then we will go through the whole genome and replace all of the .refeye condition numbers with *56. That way we will only have to change one value from now on when we add any eye cells. You can find this version of Tie Bot as .in the tutorial directory.
  
 
Well Tie Bot 9 seems to work pretty good but it still does the same thing as before. We need to delete those ties I think.
 
Well Tie Bot 9 seems to work pretty good but it still does the same thing as before. We need to delete those ties I think.
Line 115: Line 114:
 
Cond *.trefeye *56 = start *55 .deltie store stop
 
Cond *.trefeye *56 = start *55 .deltie store stop
  
This gene checks to see how many eye cells the robot that we are currently tied to, has. If that value equals its own then the robot will delete the tie. Load up .
+
This gene checks to see how many eye cells the robot that we are currently tied to, has. If that value equals its own then the robot will delete the tie. Load up .
  
 
+
[[Devincio Eversor]] to see just how good Tie Bot is getting now.
  
  
  
 
+
[[Slime]]
  
 
cond *.slime 90 < start 100 .mkslime store stop
 
cond *.slime 90 < start 100 .mkslime store stop
  
You will find the new version as Tie Bot 11
+
You will find the new version as [[TieBotstxt#Tie-Bot11.txt|Tie-Bot11.txt]]
  
Slime actually reduces the overall efficiency but gives a tie feeder a much better fighting chance when facing others of similar persuasion. We fan now only reach a population of around 320.
+
[[Slime]] actually reduces the overall efficiency but gives a tie feeder a much better fighting chance when facing others of similar persuasion. We fan now only reach a population of around 320.
  
As before with simplebot, there are still a number of things that we could do to make Tie Bot even stronger. I will leave you to figure out what they are. A robot that can beat Devincio Eversor is quite good enough for a tutorial. There are many ways to create a tie-feeding robot as good as Tie Bot 11 This tutorial follows but a single path that was chosen for its differences from the methods used in Simplebot. As you can see from this tutorial, the possibilities are almost endless. I expect to see a whole bunch of new and stronger robots out there in the F1 league soon.
+
As before with [[simplebot]], there are still a number of things that we could do to make [[Tie Bot]] even stronger. I will leave you to figure out what they are. A robot that can beat [[Devincio Eversor]] is quite good enough for a tutorial. There are many ways to create a tie-feeding robot as good as Tie Bot 11 This tutorial follows but a single path that was chosen for its differences from the methods used in Simplebot. As you can see from this tutorial, the possibilities are almost endless. I expect to see a whole bunch of new and stronger robots out there in the [[F1 league]] soon.

Revision as of 11:34, 18 December 2005

Here is Tie bot 1

' Tie-Bot 1

cond *.eye4 *.eye6 != start *.eye4 *.eye6 sub .aimsx store stop

cond *.vel 40 < start 40 *.vel sub .up store stop

end Available as Tie-Bot1.txt

Tie-Bot2.txt

Tie-Bot3.txt

Tie-Bot4Tie-Bot4 a little to see what would happen if you were to do either of those things. Just play around a little before you come back to see how I plan to fix this.

I will eventually use a similar method to that employed by Simplebot but for the moment I will leave reproduction the way it is. You will see why a little later on.


Tie-Bot5.txt

Cond Start

.tie store stop This is a really stupid gene but demonstrates some of the difficulties associated with tie feeders.

Tie-Bot5

Obviously we need to be a little more careful about when and where we shoot ties. We also need a way to feed through the ties once they are attached. First we need to add a condition or two to the gene that fires the ties. Change the gene to this. Note that we now have 10 eye cells so you will also need to change the other instances of .refeye to 10 as well.

cond *.eye5 30 > *.refeye 10 != start

.tie store stop Tie-Bot6.txt

cond *.numties 0 > start -1 .tieloc store -1000 .tieval store

.tienum store stop The condition *.numties tells the DNA how many ties are currently attached to the robot. In this instance no attempt is made to feed unless at least one tie is detected.


? .refeye


The console output window should now read

? .refeye 708-> 0


cond *.robage 0 = start 50 rnd 55 store stop



  • .refeye 0 !=


  • .refeaimdx 0 !=


This is a real problem. Hey here is a thought. Those eye cells are always equal to 77 when a new robot is born so we could add this line.

  • .eye5 77 !=

Tie-Bot7.txt

We still get the occasional two robots joined together by red ties but they are few and far between now. Another problem is in the way that Tie Bot breeds. We get large chains of young ones all fixed together so they are les effective than robots such as Devincio Eversor (also included in the tutorial directory). Try running Tie Bot 7 against Devincio Eversor

.tie store and then to add an entirely new gene to follow it..

cond *.robage 1 = start

.deltie store stop Tie-Bot8.txt


We can stop this either by making the targeting routine more accurate or by deleting the tie if it is attached to a friend. Lets try both.


  • .eye4 *.eye6 =


  • .eye5 30 <


14 56 store

Tie-Bot9.txt

Well Tie Bot 9 seems to work pretty good but it still does the same thing as before. We need to delete those ties I think.


  • 55 .readtie store

This will allow us to read the tref variables from the robot that we are tied to. We only need to use this line once since the value is never reset until we set it ourself. We will now be able to read values through the tie that corresponds to the value in *55. Next we will add a new gene..

Cond *.trefeye *56 = start *55 .deltie store stop

Tie-Bot10.txt

Devincio Eversor to see just how good Tie Bot is getting now.


Slime

cond *.slime 90 < start 100 .mkslime store stop

You will find the new version as Tie-Bot11.txt

Slime actually reduces the overall efficiency but gives a tie feeder a much better fighting chance when facing others of similar persuasion. We fan now only reach a population of around 320.

As before with simplebot, there are still a number of things that we could do to make Tie Bot even stronger. I will leave you to figure out what they are. A robot that can beat Devincio Eversor is quite good enough for a tutorial. There are many ways to create a tie-feeding robot as good as Tie Bot 11 This tutorial follows but a single path that was chosen for its differences from the methods used in Simplebot. As you can see from this tutorial, the possibilities are almost endless. I expect to see a whole bunch of new and stronger robots out there in the F1 league soon.