Bishop moves
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user