Add pawn attacking move at its diagonals.
まだ誰も着手していません。
評価
調査の方向性
Issueではファイルやテストが指定されていないため、まずJava Pawnの指し手の実装と、既存の指し手生成テストを探してください。通常の斜め方向の駒取りを確認し、続いてen passantのルールと、それが直ちに失効することを確認してください。両方の取り方の動作が正しく表現され、既存の動作が維持されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Add an attacking or capturing move for Pawn.
Unlike other pieces, the pawn does not capture in the same direction that it moves. A pawn captures diagonally forward one square to the left or right (see diagram).
Another unusual rule is the en passant capture. It can occur after a pawn advances two squares using its initial two-step move option, and the square passed over is attacked by an enemy pawn. The enemy pawn is entitled to capture the moved pawn "in passing" – as if it had advanced only one square. The capturing pawn moves to the square over which the moved pawn passed (see diagram), and the moved pawn is removed from the board. The option to capture the moved pawn en passant must be exercised on the move immediately following the double-step pawn advance, or it is lost for the remainder of the game.
For more info, check out the wikipedia entry here.
- 主要言語
- Java
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
celeroncoder/Chess のほかの issue
-
good first issue util
celeroncoder/Chess#34 · 担当者 1 名 ·
-
enhancement piece
celeroncoder/Chess#33 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
celeroncoder/Chess#32 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
celeroncoder/Chess#31 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
celeroncoder/Chess#30 ·
celeroncoder/Chess の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/flink-agents#1152 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jenkinsci/blueocean-plugin#5417 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
objectionary/eo-graphs#75 ·