For the chess engine I am trying to make, I need to be able to check a bunch of variables. Each tile on the board has a variable bound to it. And if there is a pawn on that tile it will be set to 1, with a rook it is set to 2, a knight to 3, etc etc.
All the tiles that fall outside the board will be set to 20, which is not assigned to a chess piece, but is also not an empty tile to move to.
However... The knight, moves just a bit outside those limitations when moving from H1. The formula will then try to read variable 0, which doesn't exist and everything crashes, my computer explodes and the whole town as to evacuate...
Okay, that was a little over dramatic, but the game will crash when the formula tries to read game variable 0... So, can I create a variable 0? Even if it can't be used by any of the default functions?
(I know... I could make that tile var 1 and then the next one var 2 and so on, and so on. But I didn't think of that before. If I want to do that now, I have to re-do 64 events * 12 pages = 768 items)
Edit: Oops, it is not 64*8=512 items, but 64*12=768 items, since there is unique 12 pieces in chess and not 8.
All the tiles that fall outside the board will be set to 20, which is not assigned to a chess piece, but is also not an empty tile to move to.
However... The knight, moves just a bit outside those limitations when moving from H1. The formula will then try to read variable 0, which doesn't exist and everything crashes, my computer explodes and the whole town as to evacuate...
Okay, that was a little over dramatic, but the game will crash when the formula tries to read game variable 0... So, can I create a variable 0? Even if it can't be used by any of the default functions?
(I know... I could make that tile var 1 and then the next one var 2 and so on, and so on. But I didn't think of that before. If I want to do that now, I have to re-do 64 events * 12 pages = 768 items)
Edit: Oops, it is not 64*8=512 items, but 64*12=768 items, since there is unique 12 pieces in chess and not 8.