alexobviously / alexobviously/bishop

Shogi

未關閉
#60 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
variant
主要語言
Dart
星號
23
分支
12
PR 合併指標
30 天內沒有已合併 PR

描述

https://en.wikipedia.org/wiki/Shogi

Unmet requirements:
* #40 - specifically, promoted pieces, e.g. +P is a promoted pawn, +N is a promoted knight, although both these pieces are gold generals in practice.
* Complex drop rules:
* P, L, N can't be dropped on last rank. N can't be dropped on second last. The reasoning is "you can't drop pieces in places where they would have no legal moves" - so maybe that could be defined (though it would be less efficient unless compiled).
* _A pawn may not be dropped onto a file containing another unpromoted pawn of the same player (promoted pawns do not count)._ (ugh)
* _A pawn may not be dropped to give an immediate checkmate. (This rule only applies specifically to pawns, drops and checkmates − to clarify, a player may deliver an immediate checkmate by dropping a non-pawn piece, a player may checkmate a king with a pawn that is already on the board, and a pawn may be dropped to give an immediate check as long as it does not also result in checkmate.)_ - this might have to be left out until attacks/checks are refactored, otherwise it's going to be pretty slow. If that's going to take a long time we **could** build a specific action for Shogi
* Impasse rule - when both kings enter their respective promotion zones, the game ends with a piece count (usually a draw, but could be a win).
* Perpetual checks (4 is a loss).

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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