Bots and Simulations > Bot Tavern

mutation detection

<< < (2/4) > >>

Numsgil:
Yes, that's a physically possible thing to do.  But it sort of smells like bad design.  

I saw this Bungie talk at GDC this year.  It's got me thinking about game design for Darwinbots.  Adding in features ad hoc is a recipe for balance problems (ie: we'll get the pistol from Halo 1).

happyhamsterchan:
hmmm... Well if it doesn't work out we can always go back to a previous version... But changing DB would be a lot of work just to get my bot kill everything in IM.

Houshalter:
Try using .dnalen (is that right?) If it changes, theres been a mutation. Maybe just maybe you can fill the actual dna full of junk, useless operations that require precesion and use the things happening in the dna in their forumala. If anything goes wrong, they trigger an insta kill which would just be changing .shootval to an absurdly high value and firing a shot (-1 or -2, both could be interesting.) That might be kind of complicated. Maybe you could also duplicate every operation and do a check to make sure they match up.

happyhamsterchan:
the dnalen function can't detect point mutations, so that wouldn't work. And the junk DNA would only detect mutations in the junk DNA, not the important DNA, right?
So what I find most appealing is the third option, but I wasn't sure how to do that. DB uses reverse polish notation, but I haven't been able to find push/pop commands, so I'm not exactly sure how to do that... Could you show some pseudocode, if you don't mind?

Houshalter:
I'm not exactly sure how to do it. I guess you would have to do it twice and then check to see if the two numbers on top of the stack equal each other. Then you have to do that twice, just in case there was a mutation there. Actually, I'm not sure how to do it without leaving some code unprotected, but I think it could be done.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version