Archived
2
0
Fork 0

fix: handle dark cards and edge players #18

Open
aleksei wants to merge 1 commit from feat/pokerok-4 into main
Owner

What changed

  • Added a dark neutral surface mask. The dark 5♠ now gets a full-card bbox
    instead of a rank/suit fallback box.
  • Short currency lines such as $2 are no longer rejected as weak lines. This
    lets the right-bottom player ElJurches keep its stack.
  • Clean Latin names near a side edge are accepted even when the stack line is
    missed; ElJurches is now in players.
  • is_name rejects bet-label rows such as 35 CraBka and card-suit rows such as
    H♣4, so they no longer create duplicate players.
  • Removing those duplicates also fixes overlapping player labels in the table
    image for the bottom and bottom-left players.

pokerok_4 result

cards:   7  (4 board + 3 backs; 5♠ has a full bbox)
players: 6  (PT, service_xts, CrazyFolds, ElJurches, animackx, VentralStriatum)
board:   9♣ 5♠ J♣ 2♥
pot:     $1.02

ElJurches is now found with $2, and the bottom labels are clean.

Regression checks

  • pokerok_1: 6 backs, 5 board cards, 6 players.
  • pokerok_2: 5 board cards, 6 players.
  • pokerok_3: 6 backs, 6 players, 1.4 BB pot, empty board.

Checks

44 unit tests + 2 CLI tests, clippy, fmt and dprint are green.

Known limits

  • The blue 28 badge of ElJurches is still not parsed, so its level is
    null.
  • Some other colored/small level badges remain null; stacks and seats are
    still correct.
## What changed - Added a dark neutral surface mask. The dark `5♠` now gets a full-card bbox instead of a rank/suit fallback box. - Short currency lines such as `$2` are no longer rejected as weak lines. This lets the right-bottom player `ElJurches` keep its stack. - Clean Latin names near a side edge are accepted even when the stack line is missed; `ElJurches` is now in `players`. - `is_name` rejects bet-label rows such as `35 CraBka` and card-suit rows such as `H♣4`, so they no longer create duplicate players. - Removing those duplicates also fixes overlapping player labels in the table image for the bottom and bottom-left players. ## pokerok_4 result ```text cards: 7 (4 board + 3 backs; 5♠ has a full bbox) players: 6 (PT, service_xts, CrazyFolds, ElJurches, animackx, VentralStriatum) board: 9♣ 5♠ J♣ 2♥ pot: $1.02 ``` `ElJurches` is now found with `$2`, and the bottom labels are clean. ## Regression checks - `pokerok_1`: 6 backs, 5 board cards, 6 players. - `pokerok_2`: 5 board cards, 6 players. - `pokerok_3`: 6 backs, 6 players, `1.4 BB` pot, empty board. ## Checks 44 unit tests + 2 CLI tests, clippy, fmt and dprint are green. ## Known limits - The blue `28` badge of `ElJurches` is still not parsed, so its `level` is `null`. - Some other colored/small level badges remain `null`; stacks and seats are still correct.
Add a dark neutral surface mask for full black card bboxes, keep short currency lines such as $2 from weak-line rejection, accept clean side-edge names without a stack, and reject bet-label rows that duplicated players and overlapped table labels.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/floppa!18
No description provided.