add movegen draft, add king square in pos_t, BRQKN move gen (untested)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "piece.h"
|
||||
#include "board.h"
|
||||
#include "bitboard.h"
|
||||
#include "position.h"
|
||||
|
||||
/* vectors are clockwise from N */
|
||||
static int knight_vector[] = {
|
||||
@@ -110,6 +111,15 @@ void bitboard_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
bitboard_t bb_knight_moves(bitboard_t notmine, square_t sq)
|
||||
{
|
||||
return bb_knight[sq] & notmine;
|
||||
}
|
||||
bitboard_t bb_king_moves(bitboard_t notmine, square_t sq)
|
||||
{
|
||||
return bb_king[sq] & notmine;
|
||||
}
|
||||
|
||||
/**
|
||||
* bitboard_print() - print simple bitboard representation
|
||||
* @title: a string or NULL
|
||||
|
Reference in New Issue
Block a user