4 ms·
I tried this earlier with three people. Two of them were told to give presents to the same person, and one person was left present-free. Not sure if you've fix
by capnrefsmmat 13y ago
I tried this earlier with three people. Two of them were told to give presents to the same person, and one person was left present-free.
Not sure if you've fixed that already, but it seems like an important feature to get right...
- clarle 13y agoWith three people, wouldn't a valid Secret Santa solution have everyone knowing who's giving which present to who?
- colechristensen 13y agoYes.
- dinosaurs 13y agoBah :( Just read this and got out of bed to fix this. Thanks! EDIT: Should be fixed now :) Thanks again for pointing that out. I really need to adopt a TDD approach.
- antihero 13y agoSimple algorithm: Put them all in a list, shuffle list, assign each person to the next in list and the last to the first, in a circle.