diff --git a/RuleEngine.Tests/MahjongRoomIntegrationTests.cs b/RuleEngine.Tests/MahjongRoomIntegrationTests.cs index 18176b9..b26c72f 100644 --- a/RuleEngine.Tests/MahjongRoomIntegrationTests.cs +++ b/RuleEngine.Tests/MahjongRoomIntegrationTests.cs @@ -55,9 +55,8 @@ public class MahjongRoomIntegrationTests room.Deal(); int totalTiles = room.State.Hands.Sum(h => h.Value.Count) + room.State.Deck.Count; - // NOTE: UnderscoredNamingConvention doesn't map includeHonors/WildcardCount - // So deck uses defaults (108 numbered). Known issue — fix when switching naming policy. - Assert.Equal(108, totalTiles); + // 136 tiles + 4 wildcards = 140 + Assert.Equal(140, totalTiles); } // === Turn flow === diff --git a/dsl-examples/guangdong_jipinghu.yaml b/dsl-examples/guangdong_jipinghu.yaml index ce85d9a..ac303a8 100644 --- a/dsl-examples/guangdong_jipinghu.yaml +++ b/dsl-examples/guangdong_jipinghu.yaml @@ -15,8 +15,8 @@ requires: deck: generator: mahjong - includeHonors: true - includeFlowers: true + include_honors: true + include_flowers: true total: 136 deal: diff --git a/dsl-examples/guobiao.yaml b/dsl-examples/guobiao.yaml index 84866e4..a97ee89 100644 --- a/dsl-examples/guobiao.yaml +++ b/dsl-examples/guobiao.yaml @@ -18,8 +18,8 @@ requires: deck: generator: mahjong - includeHonors: true - includeFlowers: true + include_honors: true + include_flowers: true total: 144 deal: diff --git a/dsl-examples/wuhan.yaml b/dsl-examples/wuhan.yaml index 6998e7a..077caff 100644 --- a/dsl-examples/wuhan.yaml +++ b/dsl-examples/wuhan.yaml @@ -15,10 +15,10 @@ requires: deck: generator: mahjong - includeHonors: true - includeFlowers: false - wildcardTile: 红中 - wildcardCount: 4 + include_honors: true + include_flowers: false + wildcard_tile: 红中 + wildcard_count: 4 total: 136 deal: diff --git a/dsl-examples/xuezhandaodi.yaml b/dsl-examples/xuezhandaodi.yaml index cf29735..03ff34f 100644 --- a/dsl-examples/xuezhandaodi.yaml +++ b/dsl-examples/xuezhandaodi.yaml @@ -15,8 +15,8 @@ requires: deck: generator: mahjong - includeHonors: false - includeFlowers: false + include_honors: false + include_flowers: false total: 108 deal: