Offer more computer difficulty levels than three
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- game-dev
Direzione di ricerca
Read js/ai.js lines 13–17, then inspect the settings selector and saved-setting migration in js/config.js and js/main.js. Run npm test and review tests/unit/ai-strength.test.js to understand how strength is measured. Done when old easy, medium, and hard settings retain their strengths and every new level tests measurably stronger than the one below.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The computer has only three levels, and the gap between them is large. Offer a finer scale, for example 1 to 6, built from the knobs the engine already has: depth, thinking time, blunder rate and tolerance.
Where
js/ai.js:13-17(AI_LEVELS: easy is depth 1 with 30% blunders, medium is depth 2, hard is depth 3 with a 1 s timed search)- The settings level selector, and the migration of the saved setting
Impact
Improving players get a step between medium and hard, and beginners get something gentler than easy. Stronger levels depend on a faster move generator, which is tracked separately (move generation dominates search).
Suggested fix
Turn AI_LEVELS into a numbered scale. Map today's easy, medium and hard to three of its steps, so saved settings keep their meaning. Add the new steps around them.
Open question: should this wait for #160 (a record of results against the computer), which could suggest a level?
Acceptance criteria
- Saved settings of easy, medium and hard still load as the same strength.
- Each level plays measurably stronger than the one below it in the existing
ai-strengthtests.
Getting started
- Relevant files:
js/ai.js,js/config.js,js/main.js(settings),tests/unit/ai-strength.test.js - How to run tests:
npm test
Filed by repo-audit/full-audit at 01c6a35. Severity: low. Effort: S. audit-key: enhancement|js/ai.js|AI_LEVELS
- Lingua principale
- JavaScript
- Stelle
- 4
- Fork
- 2
- Merge medio
- 22h 16m
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
TMHSDigital/Static_Chess#182 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted severity: medium tech-debt
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
TMHSDigital/Static_Chess#173 ·
I maintainer di solito rispondono entro 1 giorno
-
severity: medium tech-debt
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
TMHSDigital/Static_Chess#171 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted performance severity: medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
TMHSDigital/Static_Chess#168 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 61/100
TMHSDigital/Static_Chess#161 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/Static_Chess
Issue simili
-
priority: low server testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
blamechris/chroxy#9277 ·
I maintainer di solito rispondono entro 1 giorno
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/playwright#44289 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Ionaru/easy-markdown-editor#657 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
TMHSDigital/Free-Game-Dev-Assets#320 ·
I maintainer di solito rispondono entro 1 giorno
-
area:webapp bug finding
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno