Skip to content

Commit ef98f15

Browse files
author
Matt Tucker
committed
Fix Hyper tests with start player interactions
1 parent 1f7c5bd commit ef98f15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/scala/backgammon/BackgammonVariantTest.scala

+2-3
Original file line numberDiff line numberDiff line change
@@ -4993,14 +4993,13 @@ class BackgammonVariantTest extends BackgammonTest with ValidatedMatchers {
49934993
"4/2",
49944994
"l1h1"
49954995
)
4996-
playActionStrs(actionStrs, Some(Game.apply(variant.Hyper))) must beValid.like { g =>
4996+
playActionStrs(actionStrs, None, Some(variant.Hyper), Player.P2) must beValid.like { g =>
49974997
g.situation.moves.values.flatten.map(_.toUci.uci).toSet must_== Set("h1f1", "j1h1", "k1i1")
49984998
}
49994999
}
50005000

50015001
"end in single win even if in backgammon position" in {
50025002
val actionStrs = List(
5003-
"endturn",
50045003
"6/2",
50055004
"l1j1",
50065005
"k1e1",
@@ -5042,7 +5041,7 @@ class BackgammonVariantTest extends BackgammonTest with ValidatedMatchers {
50425041
"1/2",
50435042
"^l2"
50445043
)
5045-
playActionStrs(actionStrs, Some(Game.apply(variant.Hyper))) must beValid.like { g =>
5044+
playActionStrs(actionStrs, None, Some(variant.Hyper), Player.P2) must beValid.like { g =>
50465045
g.situation.board.history.score must_== Score(0, 3)
50475046
g.situation.end must_== true
50485047
g.situation.board.pieceInOpponentsHome(Player.P1) must_== true

0 commit comments

Comments
 (0)