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

Why is BoardItem::polar2pos r-1 different from the algorithm part #98

Open
calcitem opened this issue Jan 3, 2021 · 0 comments
Open

Comments

@calcitem
Copy link
Owner

calcitem commented Jan 3, 2021

QPointF BoardItem::polar2pos(File file, Rank rank)
{
    return position[((int)file - 1) * RANK_NB + (int)rank - 1]; // TODO: 为什么是 r - 1 和算法部分不一样?
}
@calcitem calcitem changed the title BoardItem::polar2pos 为什么是 r - 1 和算法部分不一样 Why is BoardItem::polar2pos r-1 different from the algorithm part Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant