Board editor to set up a position

オープン
#161 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
9

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TMHSDigital/Static_Chess のほかの issue

TMHSDigital/Static_Chess の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。