Admin review and standings still use a 5x5 card after card-size generalization
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- full-stack
調査の方向性
正しい参照実装である src/routes/bingo/+page.server.ts から始め、カードサイズと実効プールサイズが、影響を受ける admin、standings、leaderboard、Svelte ファイル全体でどのように受け渡されるかを比較します。admin review と standings が大きいカード上のビンゴを検出し、admin グリッドが表示されたサイズを使用し、leaderboard の最大値がそのサイズを反映すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
The player card calculates cardSize from effectivePoolSize(tiles) and passes it to shuffleTilesForUser and detectBingo. The admin review page and loadStandings do not: both call the functions with their 5x5 defaults. The admin Svelte view also hard-codes GRID_SIZE.
Reproduction
- Configure at least 49 effective tiles, so the player card becomes 7x7.
- Have a player complete a row on the displayed 7x7 card.
- Open that player in
/admin/users/:id, or view the leaderboard.
The player sees a bingo, but the admin and standings calculation only evaluates a 5x5 subset and can report no bingo, blocking verification. The leaderboard also advertises a 24-tile maximum even for larger cards.
Suggested fix
Compute the effective pool size and card size once in each consumer (or centralize board-state construction), then pass that size through shuffleTilesForUser, detectBingo, and the admin grid and leaderboard maximum.
Affected code
src/routes/admin/users/[id]/+page.server.tssrc/routes/admin/users/[id]/+page.sveltesrc/lib/server/standings.tssrc/routes/leaderboard/+page.server.tssrc/routes/bingo/+page.server.ts(the correct reference implementation)
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hacksu/bingo のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·