Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

16 King Buckets #410

Merged
merged 5 commits into from
Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
#include "uci.h"
#include "zobrist.h"

const uint16_t KING_BUCKETS[64] = {7, 7, 7, 7, 7, 7, 7, 7, //
7, 7, 7, 7, 7, 7, 7, 7, //
6, 6, 6, 6, 6, 6, 6, 6, //
6, 6, 6, 6, 6, 6, 6, 6, //
5, 5, 4, 4, 4, 4, 5, 5, //
5, 5, 4, 4, 4, 4, 5, 5, //
3, 2, 1, 0, 0, 1, 2, 3, //
3, 2, 1, 0, 0, 1, 2, 3};
const uint16_t KING_BUCKETS[64] = {15, 15, 14, 14, 14, 14, 15, 15, //
15, 15, 14, 14, 14, 14, 15, 15, //
13, 13, 12, 12, 12, 12, 13, 13, //
13, 13, 12, 12, 12, 12, 13, 13, //
11, 10, 9, 8, 8, 9, 10, 11, //
11, 10, 9, 8, 8, 9, 10, 11, //
7, 6, 5, 4, 4, 5, 6, 7, //
3, 2, 1, 0, 0, 1, 2, 3};

// piece count key bit mask idx
const uint64_t PIECE_COUNT_IDX[] =
Expand Down
4 changes: 2 additions & 2 deletions src/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
EXE = berserk
SRC = *.c pyrrhic/tbprobe.c
CC = gcc
VERSION = 20220925
MAIN_NETWORK = networks/berserk-d981c77e4fa7.nn
VERSION = 202209251606
MAIN_NETWORK = networks/berserk-c982d9682d4e.nn
EVALFILE = $(MAIN_NETWORK)
DEFS = -DVERSION=\"$(VERSION)\" -DEVALFILE=\"$(EVALFILE)\" -DNDEBUG

Expand Down
2 changes: 1 addition & 1 deletion src/networks
4 changes: 2 additions & 2 deletions src/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
#define MAX_SEARCH_PLY (INT8_MAX + 1)
#define MAX_MOVES 128

#define N_KING_BUCKETS 8
#define N_KING_BUCKETS 16

#define N_FEATURES (8 * 12 * 64)
#define N_FEATURES (N_KING_BUCKETS * 12 * 64)
#define N_HIDDEN 512
#define N_OUTPUT 1

Expand Down