This is a chess addon inspired by the Chess Tempo (https://chesstempo.com/) website.
this is a work in progress.
I have been using google gemini to write the code.
Use at your own risk.
I use the "Anki Chess Note Template" (https://github.com/TowelSniffer/Anki-Chess-2.0) for my chess openings.
I like the idea of treating just the last move of a pgn line as the card, and having all the previous moves as separate cards. So if I get the 3rd move wrong in a line, I want to be able to mark just that move wrong. This is my attempt to do that.
I adapted code from "AJT Card Management - Reset, Learn, and Grade cards from the Anki Browser" (ankiweb.net/shared/info/1021636467) to do the grading.
I updated it so that it grades cards on sync from other devices. Instead of adding the chess_parent tag, when you mark it (add the marked tag) AND flag it as red, then it add the parent cards to the queue for you to review and grade the incorrect answers wrong and the correct ones correct. If the card is not marked and flagged red, then it automatically marks all the parent cards as correct.
As far as I can tell, it is working correctly - if a card was reviewed already today, then it doesn't grade it again or present it again for manual grading.