Welcome To Darwinbots > Newbie

Why 32000

(1/1)

Panda:
Im wondering why the limit to bots mems are 32000

Numsgil:
Bot memory is stored in 16 bit signed integers.  2^16 = 65536.  Divide that by two and you get 32768.  32000 is an easier number to remember so there you go.

Incidentally I'm not sure if the limit is actually 32000 or if that's just the number everyone uses to remember easily.  You could probably check pretty easily, though.

If you can think of a reason you'd want more than that I'm all ears

Panda:
I knew it would be something to do with bits because of the 32000 number. What will DB3 limit be on the memory locations

Numsgil:
Smaller.  Probably either 2520 or 3600.  There will also be the same number of sysvars (so each sysvar has a smaller range, but there's more of them).

The idea is that if you divide either of those numbers in to 360 you can do it evenly (so angles won't be rounded like they are now), and any valid sysvar value is also a valid memory location, so it makes pointer chasing more likely to evolve.

Panda:
Yeh, the angles in this are a bit annoying but I have finally learnt them

Navigation

[0] Message Index

Go to full version