Board editor to set up a position

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
61/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

Start with the Load dialog in index.html and read js/board.js, js/game-ui.js, and js/notation.js to trace board interaction and the existing FEN import path. Run npm ci && npm test before making changes. Done when keyboard and pointer input can build a position, and starting a game matches importing the same FEN, including the existing error for illegal positions.

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

Descripción

enhancement help wanted severity: low

Summary

The only way to start from a custom position is to paste FEN into the Load dialog. Most casual players cannot write FEN by hand.

Where

  • index.html:263-293 (Load dialog; FEN is the only setup route)
  • js/notation.js, js/rules.js (FEN reading and legality checks already exist)

Proposal

Add a "Set up position" mode: a piece palette, click or drag to place and remove pieces, side-to-move and castling toggles. It produces a FEN and hands it to the existing FEN import, so the existing legality checks (both kings present, side not to move not in check, and so on) apply unchanged.

Who benefits

Players studying endgames, setting puzzles, or recreating a position from a book or another game.

Open questions

  • Keyboard model for placing pieces (reuse the board's arrow-key navigation plus a piece picker).

Acceptance criteria

  • A position built in the editor starts a game exactly as the same FEN pasted into Load does
  • Illegal setups show the existing import error
  • Usable by keyboard

Getting started

  • Relevant files: index.html, js/board.js, js/game-ui.js, js/notation.js
  • How to run tests: npm ci && npm test

Filed by repo-audit/full-audit at 73cd279. Severity: low. Effort: M. audit-key: enhancement|index.html|position-editor

Lenguaje dominante
JavaScript
Estrellas
4
Forks
2
Merge medio
22 h 16 min
PR fusionados (30 d)
9

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 TMHSDigital/Static_Chess

Todos los issues de TMHSDigital/Static_Chess

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.