Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add progressive hints to practice problems

Abierto
#11 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, next.js, node.js

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
JavaScript
Estrellas
0
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sennaicodes/codearena

Todos los issues de sennaicodes/codearena

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.