Darwinbots Forum
Code center => Darwinbots Program Source Code => Topic started by: Botsareus on September 01, 2012, 05:00:43 PM
-
I was going trough the DNA tokonizer trying to see if I can make it selectively case insensitive and stumbled on some weird code:
If (Left(a, 1) <> "'" And Left(a, 1) <> "/") And a <> "" Then
If Left(a, 3) = "shp" Or Left(a, 3) = "def" Or Left(a, 3) = "use" Then
If Left(a, 3) = "shp" Then 'inserts robot shape
rob(n).Shape = val(Right(a, 1))
End If
If Left(a, 3) = "def" Then 'inserts user defined labels as sysvars
insertvar n, a
End If
If Left(a, 3) = "use" Then
interpretUSE n, a
End If
Else
I am interested to know how "use" and "shp" is supposed to work?
I also found:
If Left(a, 2) = "'#" Or Left(a, 2) = "/#" Then
' embryo of a new feature, should allow recording
' in dna files info such robot colour, generation,
' mutations etc
getvals n, a, hold
End If
I like this concept, but I would like to re-engineer it a little later on.
-
It might have to do with something Eric was working on when he added shapes, but I don't remember anything about it to be honest.