You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// sort windows by number of matching flowers, higher match has higher priority
63
+
if(matchB!==matchA)returnmatchB-matchA
64
+
// Sort windows by fewest missing flowers, as tie breaker. This ensures that if there are multiple windows with the same match count, the one with fewer missing flowers is prioritized.
* Gets the best-matching undefined window for the given flowers.
72
+
* The flowers are also selected for the window, prioritizing more expensive flowers (based on the given market prices) in case there are more flowers than the window can hold.
// sort the given flowers by price, higher price first, to prioritize matching more expensive flowers (otherwise keeping the order by bot flower priority)
0 commit comments