-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 枚使いの牌がある手牌で置換数を誤計算する #3
Comments
条件の変更で 代わりに以下の手牌の置換数が誤計算されるようになった
|
11 (11) 24 77 77 (カッコは死に対子、雀頭と同じ牌のため対子として数えない)と 111 12 4 777 7 に分解する必要がある |
6ed5572 で面子・ターツ・対子の数が同じときは4枚使いの孤立牌が少ない分解を選ぶようにしたところすべての単体テストが通った。 しかし、Nyanten との比較テストで手牌 7 枚以降のとき不明なエラーが発生するようになった。 |
以下のデバッグ用 println! が残っていたせいだと思われる。
|
f15459a で単体テストはすべて通った。 比較テスト実行時間の参考
|
副露牌を計算に含めないルールに関してはおそらく修正が完了したが、含めるルールで誤計算することがわかった。 例: 13333m11z [2222m, 4444m] 正しい値: 2、計算結果: 3 先にターツを抜いて計算した後でターツをブロックに含めるかを待ちの有無で判定しているのが原因と思われる。 |
2d331ab にて修正した。 |
Nyanten との比較テストにより発見した例 (数値は置換数)
1111444478m : 正しい値: 3 計算値: 2The text was updated successfully, but these errors were encountered: