Closed KazukiOhta closed 2 months ago
By the way, the images show that there are three rooks (one at B4 and two in white hand), because of the issue https://github.com/sotetsuk/pgx/pull/1208 .
Hi! Thank you for your PR! 🙏 Great 👍
Could you kindly add a simple test under def test_buggy_samples():
(please add if not exists)?
Chees, Go, and Shogi have such tests for buggy examples.
Hi, thank you for your kind reply.
I added def test_buggy_samples()
in test_animal_shogi.py.
The test checks the legal_action_mask
of white GOLD at the following state.
The expected mask of white GOLD is the following.
Go Down : OK
Go Down Left : NG
Go Left : OK
Thank you so much! 🙏 I will review it next week 🙏
Thank you!
@KazukiOhta Thank you for PR! I added minor comments. I'll merge this PR after these comments are applied and pass the CI.
I applied the comments fromcommit suggestion
button
Also, I'll release a new version 2.2.0
after this PR is merged
Thank you again for your kind review. I am looking forward to the new version!
Description
The current implementation of animal_shogi.py checks the reach of GOLD with following expression.
This means the following reach.
However, the correct reach of GOLD is the following.
Proposal
Therefore, I propose to modify the expression as follows.
Bug Example
I found this bug because of the following move of white gold, which led to mate.