not working: check
This commit is contained in:
0
include/chess/generated/.gitkeep
Normal file
0
include/chess/generated/.gitkeep
Normal file
10
include/chess/magic.h
Normal file
10
include/chess/magic.h
Normal file
@ -0,0 +1,10 @@
|
||||
#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
|
||||
@ -5,7 +5,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#define BOARD_SIZE 8
|
||||
#define TOTAL_BOARD_SIZE BOARD_SIZE * BOARD_SIZE
|
||||
#define TOTAL_BOARD_SIZE (BOARD_SIZE * BOARD_SIZE)
|
||||
#define LENGTH(array) (sizeof array / sizeof *array)
|
||||
#define NOT_SELECTED UINT_LEAST8_MAX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user