Started to make the piece move

This commit is contained in:
cdricms
2023-12-21 00:48:10 +01:00
parent 11781e37ff
commit 619d03ab53
5 changed files with 31 additions and 4 deletions

View File

@@ -2,8 +2,11 @@
int main() {
Board board;
FEN fen = "rnbqkbnr/ppppp1pp/5p2/8/8/8/PPPPPPPP/RNBQKBNR";
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);
return 0;