Chess Engine
C++ chess engine with movegen, bitboards, and Arduino-friendly docs
Loading...
Searching...
No Matches
notation.h
Go to the documentation of this file.
1// notation.h
2#pragma once
3
4#include "../defs.h" // For S_BOARD, S_MOVELIST, NOMOVE, etc.
5
12extern char* squareToString(int sq);
13
20extern char* moveToString(int move);
21
28extern int parseMoveString(char* ptrChar, S_BOARD* pos);
29
34extern void printMoveList(const S_MOVELIST* list);
int parseMoveString(char *ptrChar, S_BOARD *pos)
Parse a move from coordinate notation.
Definition notation.cpp:48
char * squareToString(int sq)
Convert a board square index to algebraic notation.
Definition notation.cpp:7
char * moveToString(int move)
Convert an encoded move to coordinate notation.
Definition notation.cpp:17
void printMoveList(const S_MOVELIST *list)
Print all moves in a move list to stdout.
Definition notation.cpp:83