Files
chess/include/chess/magic.h
2024-03-17 22:06:17 +01:00

11 lines
336 B
C

#ifndef CHESS_MAGIC_H
#define CHESS_MAGIC_H
#include <stdint.h>
#include <chess/types.h>
uint_least64_t slidingMovementMask(const uint_least8_t *direction, uint_least8_t directionLength,
uint_least8_t field, uint_least64_t blockMask);
uint_least64_t* getMagicAttackPtr(const uint_least64_t mask, const struct magic_t magic);
#endif