celeroncoder / celeroncoder/Chess

Add pawn attacking move at its diagonals.

オープン
#35 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

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](https://en.wikipedia.org/wiki/Pawn_(chess)#Capturing).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Issueではファイルやテストが指定されていないため、まずJava Pawnの指し手の実装と、既存の指し手生成テストを探してください。通常の斜め方向の駒取りを確認し、続いてen passantのルールと、それが直ちに失効することを確認してください。両方の取り方の動作が正しく表現され、既存の動作が維持されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
game-dev
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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