Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
#import std
|
||||
#import nat
|
||||
|
||||
rand_char = arc ' ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
||||
|
||||
target = 'METHINKS IT IS LIKE A WEASEL'
|
||||
|
||||
parent = rand_char* target
|
||||
|
||||
fitness = length+ (filter ~=)+ zip/target
|
||||
|
||||
mutate("string","rate") = "rate"%~?(rand_char,~&)* "string"
|
||||
|
||||
C = 32
|
||||
|
||||
evolve = @iiX ~&l->r @r -*iota(C); @lS nleq$-&l+ ^(fitness,~&)^*C/~&h mutate\*10
|
||||
|
||||
#cast %s
|
||||
|
||||
main = evolve parent
|
||||
Loading…
Add table
Add a link
Reference in a new issue