{"id":21564611,"url":"https://github.com/idabmat/yatzy","last_synced_at":"2025-03-18T05:16:26.820Z","repository":{"id":57558100,"uuid":"255789944","full_name":"idabmat/yatzy","owner":"idabmat","description":"An implementation of the Yatzy game.","archived":false,"fork":false,"pushed_at":"2020-05-03T02:50:27.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T11:44:34.294Z","etag":null,"topics":["elixir","game","yatzy"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/idabmat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-15T03:03:24.000Z","updated_at":"2020-05-03T17:20:32.000Z","dependencies_parsed_at":"2022-08-28T11:41:42.508Z","dependency_job_id":null,"html_url":"https://github.com/idabmat/yatzy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idabmat%2Fyatzy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idabmat%2Fyatzy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idabmat%2Fyatzy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idabmat%2Fyatzy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idabmat","download_url":"https://codeload.github.com/idabmat/yatzy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160053,"owners_count":20408021,"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":["elixir","game","yatzy"],"created_at":"2024-11-24T10:16:33.545Z","updated_at":"2025-03-18T05:16:26.794Z","avatar_url":"https://github.com/idabmat.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Elixir CI](https://github.com/idabmat/yatzy/workflows/Elixir%20CI/badge.svg)\n# Yatzy\n\nAn implementation of the Yatzy game.\n\n## Installation\n\nThe package is [available in Hex](https://hex.pm/packages/yatzy), it can be installed\nby adding `yatzy` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:yatzy, \"~\u003e 1.0.0\"}\n  ]\nend\n```\n\n## Usage\n\nStart a game with `Yatzy.new_game([\"Alice\", \"Bob\"])`. This return the game state. All subsequent\ninteractions are done by providing the game state:\n- `Yatzy.roll(game_State, \"Alice\")` to roll all dice for a player.\n- `Yatzy.roll(game_state, \"Alice\", reroll: [1, 2, 3])` to reroll only the 1st, 2nd and 3rd dice.\n- `Yatzy.save(game_state, \"Alice\", :ones)` to save the current roll under a given line in the\n    player's score sheet. This also terminates that player's turn.\n- `Yatzy.end_game(game_state)` to finish the game. The game state returned will include the final\n    result including the name of the winners and whether it was a clear win or a draw.\n\n## Documentation\n\nDocumentation can be found at [https://hexdocs.pm/yatzy](https://hexdocs.pm/yatzy).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidabmat%2Fyatzy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidabmat%2Fyatzy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidabmat%2Fyatzy/lists"}