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

Add progressive hints to practice problems

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, next.js, node.js

調査の方向性

Read backend/arena/docs/problems.md and backend/arena/scripts/validate-problems.js to understand the problem format and validation, then trace how practice problems and battle payloads are assembled from frontend/pages/problems/[slug].js and frontend/pages/battle.js. Add and document optional hints, validate them, display them one at a time only in practice, and ensure battle responses omit them. Add examples for five problems and tests for validation and battle payloads; run npm test and node scripts/check-boundary.js.

索引モデルが issue の本文から書いたものです。

説明

enhancement help wanted

Players who are stuck get nothing between the examples and giving up. Problems have no hints field today.

What to do

  • Add an optional hints field to the problem format: an array of short strings, from gentle nudge to near-solution. Document it in backend/arena/docs/problems.md.
  • Teach backend/arena/scripts/validate-problems.js to accept it and reject empty or non-string hints.
  • In practice (frontend/pages/problems/[slug].js), show a "Show hint" button that reveals one hint at a time.
  • Hints must not be available during ranked battles (frontend/pages/battle.js). Make sure the backend does not send them to battle clients at all, not just hide them in the UI.
  • Write hints for at least five existing problems as examples.

Definition of done

  • Hints appear one by one in practice and never in a battle response (check the network payload).
  • Tests cover the validator and the battle payload.
  • npm test and node scripts/check-boundary.js pass.
主要言語
JavaScript
スター
0
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

sennaicodes/codearena のほかの issue

sennaicodes/codearena の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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