#transition #cetkaik #function #com #view #google #cet2kaik

cetkaik_full_state_transition

The full state transition functions for cetkaik. See https://sites.google.com/view/cet2kaik/%E4%BB%96%E8%A8%80%E8%AA%9E%E7%89%88-other-languages/the-standardized-rule-in-english for more context.

47 releases (7 stable)

1.3.1 Jan 12, 2023
1.3.0 Dec 26, 2022
0.8.0 Dec 21, 2022
0.3.0 Sep 29, 2022
0.1.6 Dec 26, 2020

#1384 in Rust patterns

46 downloads per month
Used in cetkaik_random_play

MIT license

68KB
1K SLoC

cetkaik_full_state_transition

官定内の変種はなるべくサポートするように心がけています。「はじめての人のためのパイグ将棋」に載っているやつだと、

変種 フラグ
「撃皇は役であるので、それのみで終季を達成できる」vs.「撃皇は役ではなく、即時減点」 step_tam_is_a_hand
「撃皇後に判定に失敗したときに撃皇が成立するか否か」 failure_to_complete_the_move_means_exempt_from_kut2_tam2
「自分の番で皇を動かしながら結局皇の位置に変化がない」はただ自分が一手損するだけなので、罰さなくていいという流派がある tam_mun_mokConsequence::Allowed

Dependencies

~4MB
~75K SLoC