bpaul-chess

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

commit 5a93117d3877330488326b0feea20e42e0bdba45
parent b6f7fbad7dea4cf71ad7d8b00d6842b63f38bfd0
Author: benjamin paul <bpaul@bpaul.xyz>
Date:   Sat, 23 Oct 2021 21:42:50 +1000

include guards

Diffstat:
Msrc/bb.h | 3+++
Msrc/pos.h | 6+++---
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/bb.h b/src/bb.h @@ -1,6 +1,9 @@ +#ifndef BB_H +#define BB_H /* Bitboard */ typedef unsigned long long bb; bool testbit(bb, unsigned char); void setbit(bb *, unsigned char); void popbit(bb *, unsigned char); +#endif diff --git a/src/pos.h b/src/pos.h @@ -1,6 +1,5 @@ -#pragma once - -#include "bb.h" +#ifndef POS_H +#define POS_H enum { WHITE, BLACK, SIDE_CNT }; @@ -23,3 +22,4 @@ struct pos { }; void parsefen(pos *, char *); +#endif