Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Admin review and standings still use a 5x5 card after card-size generalization

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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

  1. Configure at least 49 effective tiles, so the player card becomes 7x7.
  2. Have a player complete a row on the displayed 7x7 card.
  3. 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.ts
  • src/routes/admin/users/[id]/+page.svelte
  • src/lib/server/standings.ts
  • src/routes/leaderboard/+page.server.ts
  • src/routes/bingo/+page.server.ts (the correct reference implementation)
主要言語
TypeScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hacksu/bingo のほかの issue

hacksu/bingo の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。