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

Indicate absolute time using '/*' and improve clock sorting #2557

Merged
merged 2 commits into from Feb 5, 2024

Conversation

dexonsmith
Copy link
Contributor

@dexonsmith dexonsmith commented Feb 4, 2024

Borrow from the syntax for Canadian time to call out absolute time.

  • Canadian time says "3 Days/10" when there are 10 moves to make in 3 days.
  • With this, absoluate time says "3 Days/*".

Addresses this forum thread asking for an indication in the game list of which games are using absolute time:
https://forums.online-go.com/t/suggestion-sort-games-with-absolute-time-settings-to-appear-at-the-top-of-ones-list-of-games-when-sorting-by-time-remaining/50649

EDIT: also improved sorting; details at #2557 (comment).

Borrow from the syntax for Canadian time to call out absolute time.

- Canadian time says "3 Days/10" when there are 10 moves to make in 3 days.
- With this, absoluate time says "3 Days/*".
@dexonsmith dexonsmith requested a review from anoek February 4, 2024 07:31
@dexonsmith
Copy link
Contributor Author

In a game:
Image 3
In the game list:
Image 4

Copy link

github-actions bot commented Feb 4, 2024

Uffizzi Preview deployment-45799 was deleted.

In game list sorting:

- Always put non-correspondence games first
- Divide Canadian block time by the number of remaining moves
- Divide absolute time remaining by a guess of the remaining moves
@dexonsmith
Copy link
Contributor Author

I've also improved the urgency sorting in the game list to account for moves remaining in Canadian and absolute time, resulting in:
Image 2

For absolute time, the guess of moves remaining is based on the board size.

Note: the top game there is a "live" game, which is why it sorts ahead of the absolute time.

@dexonsmith dexonsmith changed the title Indicate absolute time using '/*' Indicate absolute time using '/*' and improve clock sorting Feb 4, 2024
@anoek
Copy link
Member

anoek commented Feb 5, 2024

Nice improvement, thanks!

@anoek anoek merged commit 53df13c into online-go:devel Feb 5, 2024
4 checks passed
@dexonsmith dexonsmith deleted the indicate-absolute-time branch February 5, 2024 17:35
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

Successfully merging this pull request may close these issues.

None yet

2 participants