-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convlog: add regression to mitigate real-naki-of-two-identical-discar…
…d problem
- Loading branch information
1 parent
6218429
commit 70939e8
Showing
9 changed files
with
163 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"title":["",""],"name":["Aさん","Bさん","Cさん","Dさん"],"rule":{"disp":"鳳南喰赤","aka":1},"log":[[[3,0,0],[40800,40200,8500,10500],[41,12],[],[12,13,13,17,19,19,27,33,35,36,38,44,44],[17,25,43,33,21,39,29,38,32,12,28,42,29,37,"1717p17",27,16,32],[38,33,27,60,60,60,43,19,12,19,60,38,44,12,42,44,32,16],[11,12,17,22,23,24,25,26,31,39,42,42,47],[23,18,36,15,14,21,11,27,14,34,26,44,21,17,"4242p42",26,19,16,31],[39,31,47,60,11,36,60,12,60,14,34,18,44,60,17,21,60,60,27],[13,13,15,15,18,28,32,53,37,39,43,47,47],[46,41,"4747p47",38,"p151515",11,"c365337",51,43,26,24,46,19,24,33,42,21,23,11,52],[60,60,43,32,18,60,28,"k51151515",60,60,60,60,60,60,60,60,60,60,60,60],[14,22,28,29,31,31,32,37,41,45,46,46,47],[36,"p464646",37,16,29,22,35,43,35,36,39,28,38,44,24,45,14,18,25],[22,41,47,45,28,60,16,14,43,32,60,60,60,60,60,60,60,60,60],["流局",[-3000,1000,1000,1000]]]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"title":["",""],"name":["Aさん","Bさん","Cさん","Dさん"],"rule":{"disp":"鳳南喰赤","aka":1},"log":[[[1,2,0],[22700,23700,27900,25700],[28],[],[16,17,17,19,19,23,25,35,38,42,43,44,47],[47,"4747p47",45,26,32,16,35,"35p3535","17p1717",39,18],[42,43,60,44,38,23,32,16,16,60,60],[23,29,31,32,36,38,39,41,41,42,46,46,47],[13,41,21,22,33,15,18,11,36,44,33],[42,47,13,36,29,60,60,60,60,60,33],[11,11,13,14,24,27,28,32,33,33,34,35,36],[39,31,22,11,45,44,53,17,12,27],[60,24,60,33,60,60,35,60,"r11",60],[51,16,16,19,21,24,25,34,39,44,45,46,47],[42,14,26,12,15,34,"1616p16",31],[19,39,42,47,21,46,44,45],["和了",[1600,0,-1600,0],[0,2,0,"30符1飜1000点","役牌 中(1飜)"]]]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"title":["",""],"name":["Aさん","Bさん","Cさん","Dさん"],"rule":{"disp":"鳳南喰赤","aka":1},"log":[[[1,0,0],[24000,25000,24000,27000],[27],[],[11,12,14,14,22,26,29,36,39,41,44,46,47],[26,12,28,38,52,42,33,45,"1212p12",12,25,"2626p26",23,44,26,16],[29,39,44,46,11,41,47,60,33,22,42,28,60,60,"2626k2626","1212k1212"],[11,16,16,18,28,29,31,32,34,37,41,45,47],[15,17,24,17,11,21,24,34,12,"c333234",36,26,19,23,27],[11,31,45,41,60,60,47,37,60,29,28,60,60,60,60],[11,13,14,15,51,22,25,25,28,33,39,43,43],[45,36,32,27,45,44,22,18,46,41,37,13,27],[39,45,22,36,60,60,60,60,60,60,11,37,28],[14,16,18,19,19,34,35,37,38,39,41,42,46],[17,28,13,21,38,23,21,35,33,21,39,34,47],[42,46,41,60,60,60,60,60,28,60,60,60,60],["和了",[-2000,0,0,2000],[3,0,3,"30符2飜2000点","槍槓(1飜)","平和(1飜)"]]]]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,63 @@ | ||
pub const TESTDATA: &[&str] = &[ | ||
include_str!("chankan.json"), | ||
include_str!("complex_nakis_0.json"), | ||
include_str!("complex_nakis_1.json"), | ||
include_str!("four_reach.json"), | ||
include_str!("kyushukyuhai.json"), | ||
include_str!("double_ron.json"), | ||
include_str!("ranked_game.json"), | ||
include_str!("rinshan.json"), | ||
include_str!("ryukyoku.json"), | ||
include_str!("suukantsu_0.json"), | ||
include_str!("suukantsu_1.json"), | ||
pub struct TestCase { | ||
pub description: &'static str, | ||
pub data: &'static str, | ||
} | ||
|
||
pub const TESTDATA: &[TestCase] = &[ | ||
TestCase { | ||
description: "chankan", | ||
data: include_str!("chankan.json"), | ||
}, | ||
TestCase { | ||
description: "complex_nakis_0", | ||
data: include_str!("complex_nakis_0.json"), | ||
}, | ||
TestCase { | ||
description: "complex_nakis_1", | ||
data: include_str!("complex_nakis_1.json"), | ||
}, | ||
TestCase { | ||
description: "confusing_nakis_0", | ||
data: include_str!("confusing_nakis_0.json"), | ||
}, | ||
TestCase { | ||
description: "confusing_nakis_1", | ||
data: include_str!("confusing_nakis_1.json"), | ||
}, | ||
TestCase { | ||
description: "double_kakan_then_chankan", | ||
data: include_str!("double_kakan_then_chankan.json"), | ||
}, | ||
TestCase { | ||
description: "four_reach", | ||
data: include_str!("four_reach.json"), | ||
}, | ||
TestCase { | ||
description: "kyushukyuhai", | ||
data: include_str!("kyushukyuhai.json"), | ||
}, | ||
TestCase { | ||
description: "double_ron", | ||
data: include_str!("double_ron.json"), | ||
}, | ||
TestCase { | ||
description: "ranked_game", | ||
data: include_str!("ranked_game.json"), | ||
}, | ||
TestCase { | ||
description: "rinshan", | ||
data: include_str!("rinshan.json"), | ||
}, | ||
TestCase { | ||
description: "ryukyoku", | ||
data: include_str!("ryukyoku.json"), | ||
}, | ||
TestCase { | ||
description: "suukantsu_0", | ||
data: include_str!("suukantsu_0.json"), | ||
}, | ||
TestCase { | ||
description: "suukantsu_1", | ||
data: include_str!("suukantsu_1.json"), | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters