Currently, we just pass the bitboards around to whatever methods need them. A way better design would be a Position class which has all the bitboards and other features of the position as fields. We could also port the evaluation methods into this class.
Note: this change would require almost all the files to be changed in some way, should probably split this task into multiple pull requests.
Currently, we just pass the bitboards around to whatever methods need them. A way better design would be a
Position
class which has all the bitboards and other features of the position as fields. We could also port the evaluation methods into this class.Note: this change would require almost all the files to be changed in some way, should probably split this task into multiple pull requests.