8000 Add OGS automatch opponent rank-range controls by eduardoSantiag0 · Pull Request #237 · ale64bit/WeiqiHub · GitHub
[go: up one dir, main page]

Skip to content

Add OGS automatch opponent rank-range controls - #237

Open
eduardoSantiag0 wants to merge 1 commit into
ale64bit:mainfrom
eduardoSantiag0:feature/ogs-automatch-rank-range
Open

eduardoSantiag0 wants to merge 1 commit into
ale64bit:mainfrom
eduardoSantiag0:feature/ogs-automatch-rank-range

Conversation

@eduardoSantiag0
@eduardoSantiag0 eduardoSantiag0 commented Sep 8, 2026 •
Copy link
Copy Markdown

Player can now choose how many ranks stronger and weaker an opponent, instead of always using OGS's default. The two values map to upper_rank_diff / lower_rank_diff fields of the automatch/find_match request.

  • AutomatchOptions value object plus an OGSAutomatch interface with a new findMatch(presetId, options) entry point. GameClient.findGame is unchanged, so other servers (Fox, Tygem) and their private submodules are unaffected; findGame and findMatch share a private _startAutomatch helper.
  • AutomatchRankRangeField shows two dropdowns ("Stronger" +N / "Weaker" -N)
  • Selected values are persisted in settings and passed to AutomatchPage via AutomatchRouteArguments; defaults (3/3) reproduce the previous request byte-for-byte.
WEIQIHUB

When finding a game on OGS, the user can now pick how many ranks
stronger and weaker an opponent may be, instead of always using OGS's
default difference of 3. The two values map directly to the
`upper_rank_diff` / `lower_rank_diff` fields of the `automatch/find_match`
request.

- `AutomatchOptions` value object plus an `OGSAutomatch` interface with a
  new `findMatch(presetId, options)` entry point. `GameClient.findGame`
  is unchanged, so other servers (Fox, Tygem) and their private
  submodules are unaffected; `findGame` and `findMatch` share a private
  `_startAutomatch` helper.
- `AutomatchRankRangeField` shows two dropdowns ("Stronger" +N /
  "Weaker" -N) and, when the player's OGS rank is known, the resulting
  absolute rank range. It is only rendered on the lobby for clients that
  implement `OGSAutomatch`.
- Selected values are persisted in settings and passed to `AutomatchPage`
  via `AutomatchRouteArguments`; defaults (3/3) reproduce the previous
  request byte-for-byte.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012jt4kMFeVqSKLVsPuMhKUs
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.

1 participant

0