cubing.js icon indicating copy to clipboard operation
cubing.js copied to clipboard

Scramble seeding

Open llGaetanll opened this issue 3 years ago • 1 comments

I've noticed that there is no way to seed scrambles using cubing/scramble.

Something like this would be very useful

const SEED = 1645390854477;
const s1 = await randomScrambleForEvent("333", SEED) // reproducible scramble

Are there any plans of implementing something like this?

llGaetanll avatar Feb 20 '22 21:02 llGaetanll

My instinct is that this is a big footgun — everyone should be using unpredictable, fully fair and random scrambles. There are lots of historical examples where someone thought they were getting random scrambles but weren't really — and I want to make it really hard to do that by accident.

If you need predictable scrambles, you should generally be either saving something precomputed.

Do you have any particular use cases in mind where this would be valuable and pre-computing some scrambles isn't feasible?

(Sorry for the delay — I just realized I haven't been getting notifications for new issues at all!)

lgarron avatar Feb 27 '22 03:02 lgarron