Trelane's blog

Binary life (4/?)

I should probably stop posting sooner or later. I lied before, though, it turns out I didn't move on. (Also, formula or algorithm or function, I don't know. There's a reason I scored in the 36th percentile for SAT math. If you find a mistake, or a problem, please let me know...)

I finally settled on O & H / (((O ^ H) + F) / F) / (H / 100) where O is Organism, H is Habitat, and F is 'Forgiveness.' & is a bitwise AND, ^ is a bitwise XOR. Forgiveness used to be that number, 1000, but now it's variable. The higher the number, the easier it is for a lifeform to get by.

Binary Life (3/?)

I've solved the problem, more or less. It's probably not stitches so much as a band-aid, but it works, and so I'm happy.

I did go for the second option after all, but I used 1000 instead of 10. OFF genes are now sufficiently more important than ON...

Here's output from two of my tests:

Creature vs. Habitat Concept 3
511: 0111111111 = q1
1023: 1111111111 = q2
511: 0111111111 = band(q1,q2) = q3
0: 0000000000 = bnand(q1,q2) = q4
1 = fdiv(add(q4,1000),1000) = q5
511 = fdiv(q3,q5) = q6

q6 / (q2 / 100) = 49.951124% chance for survival.

Binary Life (2/?)

I was forced, to take a break, but I'm back at it now. Here are my recent notes from the project, as I work through the first of two evolutionary pressures, habitat...

Creature Vs. Habitat
Concept
band([creature],[habitat])
[result] / ([habitat]/100) = chance of survival

The problem with the above is that turning off bits will never, ever be a favorable mutation, so 1111111111 will always evolve.

Binary Life

This, I suppose, is a better place for a blog relating to MUSHing than my previous forum--Livejournal--in which I so far have posted a total of two or three RP logs. So anyway, what's up?

Binary Life Simulator
Just 'cause I'm bored as hell.

The idea is to create an evolutionary algorithm based on binary variables, using uniform crossover to create new generations. (Really it's one variable; a 1-to-32-bit number--they will all be handled as 32-bit numbers, just with the first n bits turned off--expressed and handled in base 2)

Uniform Crossover

Syndicate content