/dports/games/py-pychess/pychess-1.0.2/lib/pychess/Utils/lutils/ |
H A D | bitboard.py | 5 def setBit(bitboard, i): argument 13 def clearBit(bitboard, i): argument 21 def firstBit(bitboard): argument 23 if (bitboard >> 48): 25 if (bitboard >> 32): 46 def lastBit(bitboard): argument 47 return lsb[bitboard & -bitboard] 58 while bitboard: 59 bit = bitboard & -bitboard 69 while bitboard: [all …]
|
H A D | attack.py | 38 if bitboard: 42 bit = bitboard & -bitboard 54 if bitboard: 57 while bitboard: 58 bit = bitboard & -bitboard 90 while bitboard: 91 bit = bitboard & -bitboard 96 bitboard -= bit 181 bit = bitboard & -bitboard 196 while bitboard: [all …]
|
H A D | leval.py | 9 from .bitboard import iterBits, firstBit, lsb 188 bitboard = pieces[piece] 191 while bitboard: 192 bit = bitboard & -bitboard 194 bitboard -= bit
|
H A D | egtb_gaviota.py | 6 from .bitboard import firstBit, clearBit
|
H A D | ldata.py | 10 from .bitboard import bitPosArray, iterBits, setBit
|
/dports/games/dreamchess/dreamchess-0.3.0/dreamer/src/ |
H A D | eval.c | 97 bitboard_t bitboard = board->bitboard[ROOK + side]; in eval_rook_bonus() local 118 if (!bitboard) in eval_rook_bonus() 141 if (!bitboard) in eval_rook_bonus() 161 bitboard = board->bitboard[WHITE_KNIGHT] | board->bitboard[WHITE_BISHOP]; in eval_development() 168 bitboard = board->bitboard[WHITE_QUEEN]; in eval_development() 170 if (bitboard && !(bitboard & square_bit[SQUARE_D1])) { in eval_development() 209 bitboard = board->bitboard[BLACK_KNIGHT] | board->bitboard[BLACK_BISHOP]; in eval_development() 216 bitboard = board->bitboard[BLACK_QUEEN]; in eval_development() 218 if (bitboard && !(bitboard & square_bit[SQUARE_D8])) { in eval_development() 259 bitboard_t bitboard = board->bitboard[BISHOP + side]; in eval_bad_bishops() local [all …]
|
H A D | board.c | 258 board->bitboard[i] = 0LL; in clear_board() 278 if (board->bitboard[BLACK_PAWN] & mask) in find_black_piece() 284 if (board->bitboard[BLACK_ROOK] & mask) in find_black_piece() 326 board->bitboard[WHITE_ALL] |= board->bitboard[WHITE_ROOK]; in execute_move() 331 board->bitboard[WHITE_ALL] |= board->bitboard[WHITE_ROOK]; in execute_move() 341 board->bitboard[BLACK_ALL] |= board->bitboard[BLACK_ROOK]; in execute_move() 346 board->bitboard[BLACK_ALL] |= board->bitboard[BLACK_ROOK]; in execute_move() 612 board->bitboard[WHITE_ALL] |= board->bitboard[WHITE_ROOK]; in unmake_move() 619 board->bitboard[BLACK_ALL] |= board->bitboard[BLACK_ROOK]; in unmake_move() 640 board->bitboard[WHITE_ALL] |= board->bitboard[WHITE_ROOK]; in unmake_move() [all …]
|
H A D | hashing.c | 55 bitboard_t bitboard; in hash_key() local 57 bitboard = board->bitboard[piece]; in hash_key() 59 bitboard ^= WHITE_PHANTOM_KINGSIDE; in hash_key() 61 bitboard ^= WHITE_PHANTOM_QUEENSIDE; in hash_key() 63 bitboard ^= BLACK_PHANTOM_KINGSIDE; in hash_key() 65 bitboard ^= BLACK_PHANTOM_QUEENSIDE; in hash_key() 66 if (bitboard) in hash_key() 68 if (bitboard & square_bit[square]) in hash_key() 75 bitboard = board->en_passant; in hash_key() 76 if (bitboard) in hash_key() [all …]
|
H A D | move.c | 50 …bitboard_t bitboard = board->bitboard[PIECE + PLAYER]; … 57 …if (!bitboard) … 73 …if (board->bitboard[ALL + PLAYER] & square_bit[dest]) … 79 …if (board->bitboard[ALL + OPPONENT(PLAYER)] & square_bit[dest]) { … 107 …bitboard_t bitboard = board->bitboard[PIECE + PLAYER]; … 157 …bitboard_t bitboard = board->bitboard[PAWN + PLAYER]; … 158 …bitboard_t bitboard_all = board->bitboard[WHITE_ALL] | board->bitboard[BLACK_ALL]; … 256 (!((board->bitboard[BLACK_ALL] | board->bitboard[WHITE_ALL]) & WHITE_EMPTY_KINGSIDE))) { in add_white_castle_moves() 262 (!((board->bitboard[BLACK_ALL] | board->bitboard[WHITE_ALL]) & WHITE_EMPTY_QUEENSIDE))) { in add_white_castle_moves() 272 (!((board->bitboard[BLACK_ALL] | board->bitboard[WHITE_ALL]) & BLACK_EMPTY_KINGSIDE))) { in add_black_castle_moves() [all …]
|
H A D | board.h | 177 bitboard_t bitboard[NR_BITBOARDS]; member
|
H A D | search.c | 64 if (board->bitboard[k] & square_bit[i * 8 + j]) {
|
/dports/benchmarks/fhourstones/fhourstones-3.1_2/ |
H A D | Game.c | 44 typedef uint64 bitboard; typedef 46 typedef __int128_t bitboard; typedef 49 #define COL1 (((bitboard)1<<H1)-(bitboard)1) 51 #define ALL1 (((bitboard)1<<SIZE1)-(bitboard)1) 73 bitboard positioncode() in positioncode() 89 int islegal(bitboard newboard) in islegal() 101 bitboard haswon(bitboard newboard) in haswon() 104 bitboard hori = newboard & (newboard>>H1); in haswon() 105 bitboard diag2 = newboard & (newboard>>H2); in haswon() 106 bitboard vert = newboard & (newboard>>1); in haswon() [all …]
|
H A D | SearchGame.c | 51 bitboard newbrd,other; in ab() 61 newbrd = other | ((bitboard)1 << height[i]); // check opponent move in ab() 64 winontop = islegalhaswon(other | ((bitboard)2 << height[i])); in ab() 71 if (islegalhaswon(other | ((bitboard)1 << height[i]))) in ab() 151 if (islegalhaswon(color[side] | ((bitboard)1 << height[i]))) in solve() 167 if (SIZE1 > 8*sizeof(bitboard)) { in main() 168 printf("sizeof(bitboard)=%lu bits, but need %d. please redefine.\n", 8*sizeof(bitboard), SIZE1); in main() 171 if (TRANSIZE < ((bitboard)1 << (SIZE1-LOCKSIZE))*31/32) { in main()
|
H A D | TransGame.c | 79 bitboard htmp, htemp = positioncode(); in hash() 81 bitboard htemp2 = 0; in hash()
|
/dports/lang/rust/rustc-1.58.1-src/library/stdarch/examples/ |
H A D | connect5.rs | 235 bitboard: [[[i32; 16]; 2]; 3], field 264 self.bitboard[black][i][j] = 0; in init() 265 self.bitboard[white][i][j] = 0; in init() 266 self.bitboard[empty][i][j] = 0; in init() 567 bitboard: pos.bitboard, in search() 897 _mm512_loadu_epi32(&pos.bitboard[coloridx][0][0]), in pos_is_winner_avx512() 898 _mm512_loadu_epi32(&pos.bitboard[coloridx][1][0]), in pos_is_winner_avx512() 993 _mm512_loadu_epi32(&pos.bitboard[coloridx][0][0]), in check_patternlive4_avx512() 1114 …0org: [__m512i; 2] = [_mm512_loadu_epi32(&pos.bitboard[coloridx][0][0]), _mm512_loadu_epi32(&pos.… in check_patternlive3_avx512() 1116 …1org: [__m512i; 2] = [_mm512_loadu_epi32(&pos.bitboard[emptyidx][0][0]), _mm512_loadu_epi32(&pos.… in check_patternlive3_avx512() [all …]
|
/dports/devel/py-PeachPy/PeachPy-01d1515/peachpy/arm/ |
H A D | registers.py | 55 def bitboard(self): member in Register 89 def from_bitboard(bitboard, regtype): argument 106 0x8000: pc}[bitboard] 123 0x8000: wr15}[bitboard] 206 def extend_bitboard(self, bitboard): argument 332 def is_compatible_bitboard(bitboard): argument 503 def is_compatible_bitboard(bitboard): argument 662 def is_compatible_bitboard(self, bitboard): argument 891 def is_compatible_bitboard(self, bitboard): argument 910 return bitboard in {0x000000000000000C, [all …]
|
H A D | function.py | 580 register_id_map[register_id] = bitboard 584 for bitboard in register_id_map.itervalues(): 585 if (allocation_bitboard & bitboard) == 0: 586 allocation_bitboard |= bitboard 632 register_id_map[register_id] = bitboard 636 for bitboard in register_id_map.itervalues(): 637 if (allocation_bitboard & bitboard) == 0: 638 allocation_bitboard |= bitboard 717 physical_register_bitboard = physical_register.bitboard 741 for bitboard in allocation_option: [all …]
|
/dports/games/brutalchess/brutalchess-0.5.2/src/ |
H A D | bitboard.cpp | 73 std::ostream& operator<< (std::ostream & os, const BitBoard & bitboard) in operator <<() argument 75 unsigned long long b = bitboard.getBoard(); in operator <<()
|
H A D | Makefile.am | 6 bitboard.cpp \
|
H A D | Makefile.in | 57 am_brutalchess_OBJECTS = basicset.$(OBJEXT) bitboard.$(OBJEXT) \ 84 @AMDEP_TRUE@ ./$(DEPDIR)/bitboard.Po ./$(DEPDIR)/board.Po \ 224 bitboard.cpp \
|
/dports/games/gnome-chess/gnome-chess-41.1/lib/ |
H A D | meson.build | 3 'chess-bitboard.vala',
|
/dports/games/py-pychess/pychess-1.0.2/lib/pychess/Variants/ |
H A D | atomic.py | 8 from pychess.Utils.lutils.bitboard import iterBits
|
/dports/games/KnightCap/Export/ |
H A D | util.c | 394 void print_bitboard(uint64 bitboard) in print_bitboard() argument 404 printf("| %c ", (bitboard & mask)?'*':' '); in print_bitboard()
|
H A D | proto.h | 133 void print_bitboard(uint64 bitboard);
|
/dports/games/py-pychess/pychess-1.0.2/lib/pychess/Utils/ |
H A D | logic.py | 17 from .lutils.bitboard import iterBits
|