Code center > Darwinbots Program Source Code

Binary

<< < (2/4) > >>

Numsgil:
I would create an array of booleans to represent bits.  I've already done that for the new bit operators in the DNA for 2.4

Zelos:
hmmm, so true = 1 and false = 0?
interesting, but what about mixing them?

Numsgil:
How do you mean mixing?

Like reconstructing a decimal value based on the bits?  Or...

Zelos:
didnt you say that if we have a binary code like 1010 the program will mix it around so it becomes something like 0110 and then it begins readiing?

Numsgil:
Oh, yeah.  That's easy, you just XOR swap bits if you want to rearrange, or compliment the bit if you want to change it, etc.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version