Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/effigies/santomatic
Secret Santa-o-matic
https://github.com/effigies/santomatic
secretsanta
Last synced: 25 days ago
JSON representation
Secret Santa-o-matic
- Host: GitHub
- URL: https://github.com/effigies/santomatic
- Owner: effigies
- License: apache-2.0
- Created: 2021-10-27T03:53:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T15:26:03.000Z (about 2 years ago)
- Last Synced: 2024-11-01T14:12:06.532Z (2 months ago)
- Topics: secretsanta
- Language: JavaScript
- Homepage: https://effigies.github.io/santomatic
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Santomatic
Santomatic is a [Pyodide](https://pyodide.org/) app for assigning people to give
gifts to each other in a [Secret Santa](https://en.wikipedia.org/wiki/Secret_Santa)
setup.The basic principles are as follows:
1) Partners are assumed to have their own arrangements, so should not get each other.
2) Gifters should not get the same giftee too often.To operationalize (2), gifters *cannot* get the same giftee two years running.
Additionally, they should be more likely to get someone the longer ago they last
got them.Finally, this algorithm prefers to have complete cycles, such that if there is any
way to satisfy the constraints, 6 people will be arranged
A -> B -> C -> D -> E -> F -> A, rather than A -> B -> C -> A and D -> E -> F -> D.Configuration is done via a basic YAML (see [example.yml](example.yml)).