Author Topic: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)  (Read 4646 times)

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« on: December 07, 2014, 12:30:47 AM »
Code: [Select]
'animal_minamal_gender
'by Shadowgod2
'12/6/2014
'gender based bot
'you will need female version
'males fight eachother because they will take over otherwise

def male 50
def female 51

cond
*.refeye *.myeye =
*.refbody *.male mult 1000 < and
*.eye5 0 = or
start
100 rnd *.female 2 mult 1 sub mult .aimdx store
stop

cond
*.refeye *.myeye =
*.refbody *.male mult 1000 > and
*.refeye *.myeye != or
*.eye5 0 >
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
*.refeye *.myeye =
*.in1 1 sub *.male mult -1 = and or
start
-1 .shoot store
*.refveldx .dx store
*.refvelup 30 add .up store
stop

cond
start
1 .male store
-8 .shoot *.in1 mult *.refbody 1000 sub sgn 0 floor mult store
stop

start
1 rnd 2 mult 1 sub *.thisgene add .delgene *.robage sgn -1 mult 1 add mult store
*.thisgene .delgene *.robage sgn mult store
stop

cond
start
1 .female store
1 .out1 store
50 .sexrepro *.fertilized sgn mult *.body 1000 sub sgn 0 floor mult store
stop

end
« Last Edit: December 08, 2014, 11:32:49 PM by Shadowgod2 »

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« Reply #1 on: December 07, 2014, 08:43:45 AM »
Possibly a system to identify genders apart...Maybe behind the female is a tiny bot which performs nothing...and is just marked as 'femaletail' by mem location 52?
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« Reply #2 on: December 07, 2014, 03:53:56 PM »
the female memloc doesn't actually do anything but to keep the dna as similar to each other as possible and to prevent devolving the male female part.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« Reply #3 on: December 08, 2014, 11:25:58 AM »
the female memloc doesn't actually do anything but to keep the dna as similar to each other as possible and to prevent devolving the male female part.
I don't mean for like the extra bit to function, just to be...there, so that when were looking at face value the simulation we can see the balance.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.

Offline Shadowgod2

  • Bot Destroyer
  • ***
  • Posts: 387
    • View Profile
Re: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« Reply #4 on: December 08, 2014, 11:35:35 PM »
an extra bot will make it too difficult for hunting and it's just a leach. i did modify the code to turn one way for male the other for female.

Offline spike43884

  • Bot Overlord
  • ****
  • Posts: 656
    • View Profile
Re: animal_minimal_gender(Shadowgod2)(interesting)(10-8-2014)
« Reply #5 on: December 09, 2014, 12:57:46 PM »
an extra bot will make it too difficult for hunting and it's just a leach. i did modify the code to turn one way for male the other for female.
Actually. .fdbody in female would have done it.
Autism can allow so much joy, and at the same time sadness to be seen. Our world is weird, and full of contradiction everywhere, yet somehow at moments seems to come together, and make near perfect sense.