Welcome To Darwinbots > Newbie

Best thing ever

<< < (6/10) > >>

ikke:
The easiest way to signal fertilisation is setting .out1 and and reading with .in1. If I may request a feature for your bot: add sexual selection: something like *.refkills *.mykills > as condition for accepting sperm. My theory is that sexual reproduction will break down without proper sexual selection in a evo sim

southpointingchariot:

--- Quote from: ikke on June 30, 2012, 02:15:05 AM ---The easiest way to signal fertilisation is setting .out1 and and reading with .in1. If I may request a feature for your bot: add sexual selection: something like *.refkills *.mykills > as condition for accepting sperm. My theory is that sexual reproduction will break down without proper sexual selection in a evo sim

--- End quote ---

Thanks for the input - alas, my lack of familiarity with the coding makes me not really sure how to implement this.

Tilthanseco:
For whate ikke said:


--- Code: ---' Show I'm fertilized
cond
*.fertilized 0 >
start
' Display my fertilize status
*.fertilized .out1 store
stop

' Sex with unfertilized only
cond
*.eye5 50 >
*.refeye *.myeye =
' Are they fertilized?
*.in1 0 =
start
-8 .shoot store
stop
--- End code ---

The in/out pairs are a nice way to communicate for many different things.

For attacking parents and children, you can put in *.robage conditions in the shoot and follow genes. Like shoot and follow only *.refage 10 >
And only shoot and follow when I'm *.robage 10 >

I like ikke's suggestion of making them only sexrepro with sperm they have more kills with.

You probably saw it by now, but the Sysvar page is the best page on the wiki in my opinion. http://wiki.darwinbots.com/w/Sysvar

southpointingchariot:

--- Quote from: Tilthanseco on July 01, 2012, 12:13:29 AM ---For whate ikke said:


--- Code: ---' Show I'm fertilized
cond
*.fertilized 0 >
start
' Display my fertilize status
*.fertilized .out1 store
stop

' Sex with unfertilized only
cond
*.eye5 50 >
*.refeye *.myeye =
' Are they fertilized?
*.in1 0 =
start
-8 .shoot store
stop
--- End code ---

The in/out pairs are a nice way to communicate for many different things.

For attacking parents and children, you can put in *.robage conditions in the shoot and follow genes. Like shoot and follow only *.refage 10 >
And only shoot and follow when I'm *.robage 10 >

I like ikke's suggestion of making them only sexrepro with sperm they have more kills with.

You probably saw it by now, but the Sysvar page is the best page on the wiki in my opinion. http://wiki.darwinbots.com/w/Sysvar

--- End quote ---

Thanks for the help! It seems to be working great.

Your robage idea is interesting - but how would that stop children from attackign parents?

Tilthanseco:
Have the shooting and following gene make sure that it's old enough. That would still let them attack each other in the future.

Maybe for not attack children and parents ever, have them pass down a code.

Have them make a code and put it in 971 (Racial memory)

--- Code: ---cond
*971 0 =
start
32000 rnd 971 store
stop
--- End code ---

Broadcast the code

--- Code: ---cond
*971 *.out1 !=
start
*971 .out1 store
stop
--- End code ---

Then have them check to see if others have that code and if they do, don't shoot or follow.

--- Code: ---cond
*.eye5 40 >
*.in1 *971 !=
start
'Shoot
stop

--- End code ---

That should keep them from killing their children and mom's.

You can probably also use memval and memloc, but I don't have experience with those.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version