Skip to content

Commit

Permalink
Add alternating for product of 3
Browse files Browse the repository at this point in the history
  • Loading branch information
RipplB committed Apr 16, 2024
1 parent bdd55d8 commit 100f366
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ public static <L extends State, R extends State, D extends State> MultiSourceSid
return state.getSourceSide() == MultiSourceSide.LEFT ? MultiSourceSide.RIGHT : MultiSourceSide.LEFT;
}

public static <L extends State, RL extends State, RR extends State, D extends State> MultiSourceSide alternating3(MultiState<L, MultiState<RL, RR, D>, D> state) {
return state.getSourceSide() == MultiSourceSide.RIGHT && state.getRightState().getSourceSide() == MultiSourceSide.RIGHT
? MultiSourceSide.LEFT
: MultiSourceSide.RIGHT;
}

}

0 comments on commit 100f366

Please sign in to comment.