Board editor to set up a position

Đang mở
#161 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
61/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend, game-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
4
Fork
2
Merge trung bình
22 giờ 16 phút
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/Static_Chess

Tất cả issue của TMHSDigital/Static_Chess

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.