-
Notifications
You must be signed in to change notification settings - Fork 25
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
Improve clarification for piece representation in infer_pieces.py #23
Improve clarification for piece representation in infer_pieces.py #23
Conversation
Hi @davidmallasen please review the changes I made, I mistakenly created a new PR(#26) for this commit pardon me for that, I am closing it. also #25 is the same as this issue I would like to fix it, one more question should I create a fresh PR for that or can I commit to this branch? |
Hi @davidmallasen Here is the sample output
|
@nayan2167 Could you also add this for the kings (numbers 1 and 8) in LiveChess2FEN/lc2fen/infer_pieces.py Line 495 in 89591d9
and LiveChess2FEN/lc2fen/infer_pieces.py Line 497 in 89591d9
? |
Done, also magic numbers removed from __sort_pieces_list |
Great, thanks @nayan2167 ! |
These changes were made to improve the clarity and accuracy of piece representation within the infer_pieces.py script. The __PREDS_DICT dictionary now associates piece names with their respective Ids, allowing for more intuitive referencing. The __max_piece() function and is_empty_square() function has been adjusted accordingly to accommodate the updated piece representation, ensuring correct functionality.