Bishop moves

This commit is contained in:
cdricms
2023-12-21 23:56:24 +01:00
parent b05fb5c303
commit 62a03b01c0
4 changed files with 84 additions and 19 deletions

View File

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