Commit 76cbe98
authored
Multiple kings per color (was_into_check and more affected) (#1179)
* fixed multiple kings for was_into_check
* fixed king() behavior on multiple kings
minus prev commit
* add test cases (very little)
* using the precomputed king mask
* removed testcase of was_into_check() on multiple kings...
... because it would cause the function to return False (because king() didn't detect any king because of decision)1 parent 11399c6 commit 76cbe98
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
| 919 | + | |
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1723 | 1727 | | |
1724 | 1728 | | |
1725 | 1729 | | |
| |||
0 commit comments