Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#11 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
full-stack

Hướng nghiên cứu

Bắt đầu với src/routes/bingo/+page.server.ts作为 triển khai tham chiếu chính xác, sau đó so sánh cách kích thước thẻ và kích thước pool hiệu dụng được truyền qua các tệp admin, standings, leaderboard và Svelte bị ảnh hưởng. Hoàn tất khi admin review và standings phát hiện bingo trên các thẻ lớn hơn, lưới admin sử dụng kích thước được hiển thị và giá trị tối đa của leaderboard phản ánh kích thước đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hacksu/bingo

Tất cả issue của hacksu/bingo

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.