Author Topic: limitation of code  (Read 3965 times)

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
limitation of code
« on: September 28, 2005, 08:56:34 AM »
iI heard that with 2.4 you will be able to do calculations in conditions but will you also be able to place conditions int instructions?
like: if value x is <10 add 30 else add 50
so you do not have to write anew gene if you only want to vary a value?

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
limitation of code
« Reply #1 on: September 28, 2005, 09:07:09 AM »
I am pretty sure that is in the plan but only Num will know for sure.

2.4 is his baby. I'm sitting it out for the moment till he gets it released.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
limitation of code
« Reply #2 on: September 28, 2005, 01:17:06 PM »
I'd love to figure out how to do that, but I don't see a way at the moment, so no, in 2.4 you will need a new gene for each condition (but not necessarily a new condition for each gene, but that's a different subject).

Ideally I'd be able to figure out a way to have nested conditions.  That allows things like Finite State Machine programming, which allows compelx behavior to be written easier.

I'm open for suggestions on how.

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
limitation of code
« Reply #3 on: September 28, 2005, 02:07:24 PM »
Nested conditions would rock.  B)
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
limitation of code
« Reply #4 on: October 01, 2005, 12:17:48 AM »
You could combine the stuff from SG's with normal genes to produce something like this. Or have one gene modify the referenced sysvars of another.

I had one bot begin reproducing based on body level. The body amount was itself made based on a lower nrg level than the original repro level. Interesting mutation since it told the bot that it had simultaneously enough nrg and body to repro.
« Last Edit: October 01, 2005, 12:40:27 AM by Endy »