Skip to content

Commit

Permalink
fix: handle slice moves in reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Apr 25, 2024
1 parent af4b58a commit c3091cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion three-style-lib/src/moves/alg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ impl Alg {

let result = match prev_value {
Some(n) => n * m,
None => group.contains_key(&m.kind.inverse()).then_some(m),
None => m
.kind
.parallel()
.iter()
.any(|n| group.contains_key(n))
.then_some(m),
};

if let Some(value) = result {
Expand Down

0 comments on commit c3091cc

Please sign in to comment.