Chess Engine
C++ chess engine with movegen, bitboards, and Arduino-friendly docs
Loading...
Searching...
No Matches
make_move.h
Go to the documentation of this file.
1#pragma once
2
3#include "../defs.h"
4
5
7extern const int CastlePerm[120];
8
10extern int makeMove(S_BOARD *pos, int move);
11
13extern void takeMove(S_BOARD *pos);
14
16extern void makeNullMove(S_BOARD *pos);
17
19extern void takeNullMove(S_BOARD *pos);
const int CastlePerm[120]
Castling permission mask by board square (mailbox 120).
Definition make_move.cpp:14
void takeMove(S_BOARD *pos)
Undo the last made move.
void takeNullMove(S_BOARD *pos)
Undo the last null move.
int makeMove(S_BOARD *pos, int move)
Make a move; returns non-zero if legal (king not left in check).
void makeNullMove(S_BOARD *pos)
Make a null move (side to move toggles, no pieces moved).