-
Notifications
You must be signed in to change notification settings - Fork 19
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
Move time not shown in score graph #188
base: github
Are you sure you want to change the base?
Conversation
@ukscid can you review this request, which affects some of your code, and let me know if it is ok?
|
Hallo Steffen, der Zeitverbrauch pro Zug wird in der pgn-Notation mit %emt angegeben. Hier macht es Sinn, dass man dies zusammen addiert um den Gesamtzeitverbrauch zu bekommen. the time consumption per move is indicated in the pgn notation with %emt in the pgn notation. Here it makes sense to add this values to get the total time consumption. |
Ich habe einen weiteren Commit hinzugefügt. Darin wird der Zeitverbrauch pro Zug berücksichtigt. Ich habe mich bei der Implementierung an die Anzeige der Clock Usage bei ChessDojo orientiert. Bei Lichess startet man ohne Extrazeit, diese addiere ich aber trotzdem dazu, weil man bei chess.com mit der Extrazeit startet. |
Der Code für die Zeit pro Zug Anzeige ist nur aktiv, wenn das Timecontrol-Tag gefunden wird. Dies ist bei Online-Spielen von lichess und chess.com der Fall. The code for the time per move display is only active if the time control tag is found. This is the case for online games from lichess and chess.com. |
Die Auswertung des Timecontrol-Tag ist gut. Der Code wertet nur das Format [TimeControl "300+2"] aus. Anmerkung zum Code Der Code
kann ersetzt werden durch
Die Umrechung The evaluation of the time control tag is good. The code only evaluates the format [TimeControl “300+2”]. Note on the code The code
can be replaced by
The conversion |
@buchholzs i have upload a patch to calculate the time per move from %clk: branch UpdateTimeGraph |
@ukscid I worked also on a patch with the same functionality. I used |
Your code is correct regarding the data. I assume that your example has been adapted with regard to the tag and the original time control was 1800+20 and the %clk data did not match the tag "2/1800+20" |
I agree with the implementation based on real-world examples. Your example was not available to me because there are very few PGNs that use the full capabilities of the TimeControl tag. However, I think your implementation is better than mine and hope that your changes will be merged into the main branch soon 👍 |
Some considerations:
|
I agree with these considerations. However, to make progress, I would suggest a two-step approach. First, merge the previously discussed changes from @ukscid into the main branch. The functionality will then correspond to that already available for the %emt tag. In a second step, the additional improvements suggested by @benini can be implemented. This means that the already implemented functionality of the move time display will be available shortly and can be continuously improved. |
i pushed same changes to the branch to test the considerations of Fulvio:
It should be possible to show both the remaining time and the time per move. : Showing both on the same scale may result in unreadable/useless graphs. But i can try how this looks. I think 3 infos ( time left, time per move and evaluation) may be overload the grafic. |
with: The user can click on checkboxes to show or hide each chart (the checkboxes should be on a single row). This is the Python code that produce that chart:
|
I think your ideas are good. I will create a patch that starts the window from the other menu. If the user can choose to see negative times, other values should be customizable. From my point of view, your ideas have the following effects: |
In games with only %clk, the "time per move" checkbox does nothing. You suggested that the reasoning behind this is that the values could be negative, but the user has already decided that they want to display them, even if they are negative. If they don't want to see them, they can simply uncheck the box. There is no need for any additional options.
It's not a matter of personal preferences. There are decades of research and millions of daily examples.
The PGN window was written 20 years ago. Modern software don't work like that.
It is easy to scale the values manually to be between 0 and 1, my suggestion is to start with that: |
I do not understand this. Only if the pgn data miss the Timecontrol-Tag then the "time per move" does nothing.
This are the both implementations one from buchholzs (strict) and one from me.
Then chessbase does not know this: Chessbase evaluation profile
Maybe i have misinterpreted your suggestion to have fixed colors. I had understood that you didn't want to have a dependency on the theme. But I fully agree when you say that the colors should be derived from the theme. (Btw: That's also a point I don't understand when you say that it's not good style to use “ttk::style lookup ..”. How do you think the colors should be derived from the theme?)
I understand that a "pre-scale" 0-1 will solve the problem of different scales. But what is about the y-axis labeling? And why should negative values look less ugly? |
Hello, |
Fixes #187