I am trying to implement bitboards in a language that only has a 64 bit signed number.
I am following this tutorial:
When I try to represent an operation like this:
Code: Select all
set_bit (bitboard, square) (bitboard | = (1ULL << square))My question is how can I represent a bitboard with a number ranging from -9223372036854775808 to 9223372036854775807?
The language is gdscript from the Godot engine, and I think it has no function to convert from signed to unsigned.
I want to continue the tutorial but I am stuck with this.