add hyperbola-quintessence.[ch]}, rank move gen, + file/rook/queen
This commit is contained in:
@@ -4,28 +4,35 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../src/bitboard.h"
|
||||
#include "../src/position.h"
|
||||
#include "../src/piece.h"
|
||||
//#include "../src/fen.h"
|
||||
#include "../src/bitboard.h"
|
||||
#include "../src/hyperbola-quintessence.h"
|
||||
|
||||
int main(int __unused ac, __unused char**av)
|
||||
{
|
||||
char str[128];
|
||||
char str[256];
|
||||
bitboard_init();
|
||||
hyperbola_init();
|
||||
for (int i = 0; i < 64; ++i) {
|
||||
char str[128];
|
||||
sprintf(str, "\ndiag/antidiag/vert %d", i);
|
||||
bitboard_print_multi(str, 5,
|
||||
sq_bbfile[i] | sq_bbrank[i] | sq_bbdiag[i] | sq_bbanti[i],
|
||||
sq_bbfile[i], sq_bbrank[i],
|
||||
sq_bbdiag[i], sq_bbanti[i]);
|
||||
}
|
||||
for (square_t sq = 0; sq < 64; ++sq) {
|
||||
sprintf(str, "%2d %#lx %#lx knight", sq, sq_bb[sq], knight_attacks[sq]);
|
||||
bitboard_print(str, knight_attacks[sq]);
|
||||
sprintf(str, "%2d %#lx %#lx knight", sq, sq_bb[sq], king_attacks[sq]);
|
||||
bitboard_print(str, king_attacks[sq]);
|
||||
sprintf(str, "\n%#x:\n %-22s%-22s%-22s%-22s%-22s%-22s%-22s", i,
|
||||
"sliding", "diagonal", "antidiagonal", "file", "rank", "knight",
|
||||
"king"
|
||||
);
|
||||
bitboard_print_multi(str, 7,
|
||||
bb_file[i] | bb_rank[i] |
|
||||
bb_diagonal[i] | bb_antidiagonal[i],
|
||||
bb_diagonal[i], bb_antidiagonal[i],
|
||||
bb_file[i], bb_rank[i],
|
||||
bb_knight[i], bb_king[i]);
|
||||
}
|
||||
/*
|
||||
* for (square_t sq = 0; sq < 64; ++sq) {
|
||||
* sprintf(str, "%2d %#lx %#lx knight", sq, bb_sq[sq], bb_knight[sq]);
|
||||
* bitboard_print(str, bb_knight[sq]);
|
||||
* sprintf(str, "%2d %#lx %#lx knight", sq, bb_sq[sq], bb_king[sq]);
|
||||
* bitboard_print(str, bb_king[sq]);
|
||||
* }
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@ int main(int ac, char**av)
|
||||
char revfen[128];
|
||||
int comp;
|
||||
|
||||
debug_init(5, stderr, true);
|
||||
//debug_init(5, stderr, true);
|
||||
//pos_pool_init();
|
||||
pos = pos_new();
|
||||
if (ac == 1) {
|
||||
|
Reference in New Issue
Block a user