bpaul-chess

UCI chess engine to replace Omelette Chess Engine
Log | Files | Refs | README | LICENSE

commit a664a7d86033b4f3061dcb8ca74cd022e9c28c97
parent ed6793101504aebf59c0fcb98d1ea78466e154dd
Author: benjamin paul <bpaul@bpaul.xyz>
Date:   Sat, 23 Oct 2021 22:26:40 +1000

Add header file dependency in the makefile

Diffstat:
MMakefile | 5+++++
Msrc/gen.c | 2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -12,5 +12,10 @@ all: $(NAME) $(NAME): $(OBJS) $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) +src/main.o: src/main.c src/bb.h src/pos.h +src/bb.o: src/bb.c src/bb.h +src/gen.o: src/gen.c src/bb.h src/pos.h +src/pos.o: src/pos.c src/bb.h src/pos.h + clean: rm $(NAME) $(OBJS) diff --git a/src/gen.c b/src/gen.c @@ -5,7 +5,7 @@ void gen_pseudo(pos *p) { - bb our_pieces[PIECE_CNT]; + bb our_pieces[6]; for (char pc = PAWN; pc <= KING; pc++) { our_pieces[pc] = p->pieces[pc] & p->sides[p->turn];