Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bots that visibly write code at a human pace

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, next.js, node.js

Direzione di ricerca

Start with backend/server.js and trace how bot submissions currently emit code-update; also read the existing bot difficulty settings and the tests run by npm test. The goal is a pure seeded timeline whose replay yields the reference solution, while keeping win rates stable; validate with node scripts/check-boundary.js and include a screen recording and before/after win rates in the pull request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

Bot battles feel lifeless. The bot's editor stays blank (its code is an empty string in backend/server.js) until a timer fires and it submits a finished solution all at once. Players can tell instantly that nobody is there.

Goal

Bots that look like they are coding: the opponent editor fills in gradually, with pauses, small mistakes and test runs, at a pace that matches the bot's difficulty.

Design

  • Build a typing plan from the bot's reference solution before the battle starts: a timeline of insertions, pauses (longer at the start of a function or a loop) and the occasional typo fixed a moment later.
  • Easier bots plan slower, pause more, and may submit a failing version first, then fix it.
  • Emit the plan through the same throttled code-update path a human uses, so the frontend needs no special case.
  • Total time follows the bot's difficulty settings, with randomness so two battles against the same bot are not identical.
  • Bots never "react" to the player's code. Their timeline depends only on the problem, the difficulty and a seed.

Definition of done

  • A pure, seeded function that turns a solution into a timeline, with tests proving that replaying the timeline produces exactly the reference solution.
  • A screen recording of a bot battle in the pull request.
  • Bot win rates by difficulty before and after, so the change does not quietly make bots easier or harder.
  • npm test and node scripts/check-boundary.js pass.
Lingua principale
JavaScript
Stelle
0
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sennaicodes/codearena

Tutte le issue di sennaicodes/codearena

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.