Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shogi] repetition test #932

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

[Shogi] repetition test #932

wants to merge 6 commits into from

Conversation

youyou-ku
Copy link
Collaborator

@youyou-ku youyou-ku commented Jun 8, 2023

  • without check(draw)
  • with check, not continuous(draw)
  • with continuous check(checked player win)

@youyou-ku
Copy link
Collaborator Author

将棋の千日手は、同一盤面が4回現れたときに判定。
王手がかからない千日手の場合は、引き分けで処理(プロの対局等だと先後入れ替えで指し直し)。連続王手の千日手の場合は、王手をかけ続けた側の負け。
ループの途中で王手がかかる場合でも、途中で王手でない指し手が挟まる場合は連続王手の千日手に当たらず、引き分け。

@youyou-ku
Copy link
Collaborator Author

youyou-ku commented Jun 8, 2023

同一盤面:盤面、互いの持ち駒、手番が一致
持ち駒や手番が異なる場合は同一盤面判定しないのでそれ用のテストも追加

  • 盤面が同じで持ち駒が異なる
  • 盤面、持ち駒が同じで手番が異なる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant