Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Board::move() and Board::parse_move() to find src square #3

Open
ryan597 opened this issue Dec 7, 2023 · 0 comments · May be fixed by #23
Open

Fix Board::move() and Board::parse_move() to find src square #3

ryan597 opened this issue Dec 7, 2023 · 0 comments · May be fixed by #23
Labels
bug Something isn't working enhancement New feature or request

Comments

@ryan597
Copy link
Owner

ryan597 commented Dec 7, 2023

Describe the bug
Currently parse_move doesn't find the source square for the move, and just moves the first matching piece type

To Reproduce

#include "board.cpp"
#include "player.cpp"

auto main(int argc, char** argv) -> int {
    Board board{};
    board.print();
    board.move("d4");
    board.print();
}

Expected behavior
Above should move the pawn on d2 to d4 by checking which pawns can legally move there.
generate_legal_moves will need to be implemented to allow checking of the pieces legal moves.

Additional context

Error logs Dump error logs here
@ryan597 ryan597 added bug Something isn't working enhancement New feature or request labels Dec 7, 2023
@ryan597 ryan597 linked a pull request Dec 14, 2023 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant