Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caseykulm/santa-solver
Solvers for Secret Santa
https://github.com/caseykulm/santa-solver
Last synced: 4 days ago
JSON representation
Solvers for Secret Santa
- Host: GitHub
- URL: https://github.com/caseykulm/santa-solver
- Owner: caseykulm
- Created: 2021-11-07T21:47:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T19:08:25.000Z (12 months ago)
- Last Synced: 2023-11-25T20:22:19.423Z (12 months ago)
- Language: Kotlin
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Secret Santa Solver
Included is a solver that uses [ChocoSolver](https://choco-solver.org/) Contraint Satisfaction Solver library to generate
all possible solutions.To execute this run the tests with test/real data to generate all solutions, or a random solution.
Example Output:
```
Total solution count: 80Solution #0
=================
Gifter Beavis is assigned to Giftee Cat
Gifter Butthead is assigned to Giftee Dog
Gifter Cat is assigned to Giftee Jerry
Gifter Dog is assigned to Giftee Tom
Gifter Jerry is assigned to Giftee Butthead
Gifter Tom is assigned to Giftee Beavis...
Solution #79
=================
Gifter Beavis is assigned to Giftee Tom
Gifter Butthead is assigned to Giftee Dog
Gifter Cat is assigned to Giftee Jerry
Gifter Dog is assigned to Giftee Butthead
Gifter Jerry is assigned to Giftee Beavis
Gifter Tom is assigned to Giftee CatRandomly chosen solution is #21
=================
Gifter Beavis is assigned to Giftee Dog
Gifter Butthead is assigned to Giftee Cat
Gifter Cat is assigned to Giftee Jerry
Gifter Dog is assigned to Giftee Tom
Gifter Jerry is assigned to Giftee Butthead
Gifter Tom is assigned to Giftee Beavis
```