11 lines
336 B
C
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
|