{"id":17190891,"url":"https://github.com/dfm/dominion","last_synced_at":"2025-04-13T19:42:36.486Z","repository":{"id":57423591,"uuid":"279460492","full_name":"dfm/dominion","owner":"dfm","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-12T20:50:29.000Z","size":357,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T04:04:14.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T02:25:20.000Z","updated_at":"2023-03-12T20:50:34.000Z","dependencies_parsed_at":"2022-09-05T11:10:43.724Z","dependency_job_id":null,"html_url":"https://github.com/dfm/dominion","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fdominion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fdominion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fdominion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfm%2Fdominion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfm","download_url":"https://codeload.github.com/dfm/dominion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248771181,"owners_count":21159104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:24:16.228Z","updated_at":"2025-04-13T19:42:36.459Z","avatar_url":"https://github.com/dfm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kingdom generator for Dominion\n\nThis script generates recommended \"kingdoms\" for the card game [Dominion](https://en.wikipedia.org/wiki/Dominion_%28card_game%29) and its expansions.\nIt scrapes the [Dominion Strategy Wiki](http://wiki.dominionstrategy.com/index.php/Main_Page) to find connections between cards and then uses this graph to find sets of cards that should play well together.\nIn general, I've found the resulting games to be more fun than the randomly generated ones.\n\n## Installation\n\nThe best way to install is using pip:\n\n```bash\npython -m pip install dominion\n```\n\n## Usage\n\nYou can generate a random, well-connected kingdom using all the expansions:\n\n```bash\ndominion generate\n```\n\nYou can restrict the code to a subset of the expansions:\n\n```bash\ndominion generate -s base -s prosperity -s seaside\n```\n\nNote that you can list the supported expansions using:\n\n```bash\ndominion list sets\n```\n\nYou can start the kingdom off with your favorite cards:\n\n```bash\ndominion generate -c \"king's court\" -c village\n```\n\nAs above, you can see the available cards using:\n\n```bash\ndominion list cards\n# or\ndominion list cards -s prosperity -s base\n```\n\nFinally, for good measure you can get a deterministic result using:\n\n```bash\ndominion generate --seed 42\n```\n\n## Updating the graph\n\nThe graph of card information and connections is included in this repository, but you can update it using:\n\n```bash\ndominion setup data/cards.json\n```\n\nYou'll need to have [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/) and [requests](https://requests.readthedocs.io) installed, and installing [tqdm](https://tqdm.github.io/) doesn't hurt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fdominion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfm%2Fdominion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfm%2Fdominion/lists"}