Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Nov 28, 2023
1 parent cfbbbef commit ce3becd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/backtracking/gs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function anyGroupPossible<T>(
// Otherwise, continue
// The predicate returned true, so group `groupNum` is good
// Put the picked item into it
const newGroups = groups.map((group, i) => i === groupNum ? [picked, ...group] : group)
const newGroups = groups.with(groupNum, [picked, ...groups[groupNum]])

// Next, pick the head item from the current pot
const [newPicked, ...newSource] = source
Expand Down

0 comments on commit ce3becd

Please sign in to comment.