Add pawn attacking move at its diagonals.
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
- 38/100
Hướng nghiên cứu
Issue không nêu tên tệp hoặc bài kiểm thử nào, vì vậy hãy bắt đầu bằng việc xác định phần triển khai nước đi của Java Pawn và mọi bài kiểm thử hiện có cho việc sinh nước đi. Xác minh các nước bắt chéo thông thường, sau đó là luật en passant và việc nó hết hiệu lực ngay lập tức. Hoàn thành khi cả hai hành vi bắt quân đều được thể hiện chính xác và hành vi hiện có vẫn được giữ nguyên.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của celeroncoder/Chess
-
good first issue util
celeroncoder/Chess#34 · 1 người được giao ·
-
enhancement piece
celeroncoder/Chess#33 · 1 người được giao ·
-
Add the pawn jump move. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
celeroncoder/Chess#32 ·
-
Add `pawn promotion`. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
celeroncoder/Chess#31 ·
-
Implement the base pawn class. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
celeroncoder/Chess#30 ·
Tất cả issue của celeroncoder/Chess
Issue tương tự
-
certification
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Đang mởbug ecr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Needs: Triage Type: Feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
AntennaPod/AntennaPod#8794 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
github/copilot-sdk#2760 ·