Board editor to set up a position

未關閉
#161 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
61/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
javascript
領域
frontend, game-dev

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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

主要語言
JavaScript
星號
4
分支
2
平均合併
22 小時 16 分鐘
30 天內合併 PR
9

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Static_Chess 的其他 Issue

查看 TMHSDigital/Static_Chess 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。