Queen moves

This commit is contained in:
cdricms
2023-12-26 23:03:50 +01:00
parent d204340d29
commit 5d830528cd
2 changed files with 69 additions and 47 deletions

View File

@@ -4,7 +4,7 @@ int main() {
Board board;
FEN fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR";
fen_toBoard(fen, board);
Coordinates *coords = piece_getMoves(board, board[2].piece, board[2].coords);
Coordinates *coords = piece_getMoves(board, board[3].piece, board[3].coords);
printf("%d,%d", coords->row, coords->column);
free(coords);
return 0;