diff options
| author | enricotenuti <tenutz_27@outlook.it> | 2024-08-29 19:28:13 +0200 |
|---|---|---|
| committer | enricotenuti <tenutz_27@outlook.it> | 2024-08-29 19:28:13 +0200 |
| commit | 0a45da13ca06f7884872160a6756a04d1eb849c5 (patch) | |
| tree | 18639a74fc21de9d954178ed0610327093ffadca /src/core/moves.h | |
| parent | 47a65b676d1de889706517f05659f0bb659782c9 (diff) | |
| download | nissy-core-0a45da13ca06f7884872160a6756a04d1eb849c5.tar.gz nissy-core-0a45da13ca06f7884872160a6756a04d1eb849c5.zip | |
constants fix
Diffstat (limited to 'src/core/moves.h')
| -rw-r--r-- | src/core/moves.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/moves.h b/src/core/moves.h index 726a452..b28822a 100644 --- a/src/core/moves.h +++ b/src/core/moves.h | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | /* probably these can be placed in constants file */ | 1 | /* probably these can be placed in constants file */ |
| 2 | #define NONISS 0x00 | 2 | #define NORMAL 0x00 |
| 3 | #define NISS 0x01 | 3 | #define INVERSE 0x01 |
| 4 | #define INVERSEBRANCH 0x03 | 4 | #define INVERSEBRANCH 0x03 |
| 5 | #define BRANCH 0x02 | 5 | #define NORMALBRANCH 0x02 |
| 6 | #define ALLMOVES 0x3FFFF | 6 | #define ALLMOVES 0x3FFFF |
| 7 | #define NOHALFTURNS 0x2DB6D | 7 | #define NOHALFTURNS 0x2DB6D |
| 8 | 8 | ||
| @@ -53,7 +53,7 @@ _static uint32_t | |||
| 53 | allowednextmoveH48(uint8_t *moves, uint8_t n, uint32_t h48branch) | 53 | allowednextmoveH48(uint8_t *moves, uint8_t n, uint32_t h48branch) |
| 54 | { | 54 | { |
| 55 | uint32_t result = ALLMOVES; | 55 | uint32_t result = ALLMOVES; |
| 56 | if (h48branch & BRANCH) | 56 | if (h48branch & NORMALBRANCH) |
| 57 | result &= NOHALFTURNS; | 57 | result &= NOHALFTURNS; |
| 58 | if (n < 1) | 58 | if (n < 1) |
| 59 | return result; | 59 | return result; |
