Offer more computer difficulty levels than three
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
- Domínio
- game-dev
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- JavaScript
- Estrelas
- 4
- Forks
- 2
- Merge médio
- 22h 16min
- PRs com merge (30d)
- 9
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/Static_Chess
-
enhancement help wanted severity: low
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 58/100
TMHSDigital/Static_Chess#182 ·
Mantenedores costumam responder em até 1 dia
-
help wanted severity: medium tech-debt
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
TMHSDigital/Static_Chess#173 ·
Mantenedores costumam responder em até 1 dia
-
severity: medium tech-debt
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
TMHSDigital/Static_Chess#171 ·
Mantenedores costumam responder em até 1 dia
-
help wanted performance severity: medium
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 38/100
TMHSDigital/Static_Chess#168 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement help wanted severity: low
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 61/100
TMHSDigital/Static_Chess#161 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TMHSDigital/Static_Chess
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cytoscape/cytoscape.js#3597 ·
Mantenedores costumam responder em até 5 dias
-
priority: low server testing
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
blamechris/chroxy#9277 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
sunososobro-hub/cloudball#191 ·
Mantenedores costumam responder em até 1 dia
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
microsoft/playwright#44289 ·
Mantenedores costumam responder em até 1 dia
-
Wire ISO post: has() accepts text values such as an empty string, true or 0x1A for wire numbersAbertaarea:post effort:low enhancement P7 source:agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia