-
Notifications
You must be signed in to change notification settings - Fork 29
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
ZeroDivisionError: float division by zero -- seems to be a different one from reported previously #34
Comments
python-chess-annotator skips moves it finds in its opening book, but it has no logic to detect situations where the game ended before the main line was out of book (and therefore no analysis is necessary). I believe that is the cause of this error. Simply returning if |
ok, here's another one, more recent, basically you have a ZeroDivision happening inside the exception handler of another ZeroDivision. I don't understand why you need all this "precise" time allocation per error_count, ply_count or whatever. because it's natural that 60-moves games should take 3x as long to annotate compared to a 20-moves game. So what I did is replaced the
|
I'm no longer developing this app, as is evinced by its archived status. If I do a rewrite, it will be from scratch, and I will be disinclined to abandon the time budgeting features (although they would have more rigorous tests). |
FYI I am working on a rewrite. Not sure when it will be publication ready though. |
@rpdelaney do you use any repo for the development? need any help? i can lend a hand... |
Thanks for offering. It's here, currently in what I would call an "MVP" state. I don't want to publish it to pypi until it's on par with the features of the original though. Please discuss with me if you plan to do a lot of work on it since I have some rather opinionated ideas in my head about how I'd like the end product to look. There are also a lot of new features in python-chess to take advantage of this time around. |
Thanks for the hard work on this - it promises to be such a useful tool |
What are folks using this for? The original version was just a project to teach myself python. With free analysis tools out there like on lichess.org what niche is this filling? |
Hi Ryan, I've got a pgn containing all my online games - what I want to do is analyse the positions in all of them to identify my mistakes or missed opportunities of various severity and use the FENs of those positions to generate training puzzles for myself to improve. Coding is not my forte, but your tool is the closest thing I've found to facilitate the first game analysis and annotation part of this, and suspect I can then muddle through writing code to do the rest. |
If what you want is tactics, there are some tools that can accomplish this for you I believe, although I haven't used any of them (yet). lichess-puzzler was I think used to make the new batch of lichess puzzles (it's based on a very primitive script I wrote but ornicar improved it immensely). There's also chess artist and a few others that come up if you just search github for "chess puzzle". If I were you I would be thinking more about one of these tools for generating puzzles. The problem with chess-annotator is that it only shows one line of best play when there may be transposing lines or other different-but-equally-good ways to play. I'm still going to work on annotator-ng as time and energy permits, mind you. |
Oh hey, look at this! |
@rpdelaney i have a few thousands games of mine over the last couple of years, I'd like to analyze them once and for all, not copy-pasting to some web-site one by one and worrying about hitting some limit of 10 analyses a day (like on lichess). besides, occasionally I'd like to get a fresh game collection from the net and search it for some particular things that interest me, you may call it tactics, but with some additional requirements and/or conditions. |
This happened for the game downloaded from lichess, it had a proper PGN header, but the game was "1. e4 e6 0-1" -- that's it, white resigned.
The text was updated successfully, but these errors were encountered: