{"id":15683808,"url":"https://github.com/nikku/skaat","last_synced_at":"2025-05-07T14:24:45.140Z","repository":{"id":57362181,"uuid":"334538148","full_name":"nikku/skaat","owner":"nikku","description":"A Skat game loop","archived":false,"fork":false,"pushed_at":"2023-12-17T23:09:42.000Z","size":569,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T14:24:38.303Z","etag":null,"topics":["card-game","game-loop","skat"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikku.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nikku"]}},"created_at":"2021-01-31T00:04:43.000Z","updated_at":"2024-05-06T13:48:45.000Z","dependencies_parsed_at":"2024-10-23T17:10:47.441Z","dependency_job_id":null,"html_url":"https://github.com/nikku/skaat","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"7713011494f312c379d2c96f91bfbc23b0a63b8b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fskaat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fskaat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fskaat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikku%2Fskaat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikku","download_url":"https://codeload.github.com/nikku/skaat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252893255,"owners_count":21820791,"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":["card-game","game-loop","skat"],"created_at":"2024-10-03T17:08:43.502Z","updated_at":"2025-05-07T14:24:45.085Z","avatar_url":"https://github.com/nikku.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nikku"],"categories":[],"sub_categories":[],"readme":"# skaat\n\n[![CI](https://github.com/nikku/skaat/actions/workflows/CI.yml/badge.svg)](https://github.com/nikku/skaat/actions/workflows/CI.yml)\n\nA [Skat](https://en.wikipedia.org/wiki/Skat_%28card_game%29) game loop.\n\nCan be embedded to build a [fully featured Skat application](https://nikku.github.io/skaat-app/).\n\n\n## Installation\n\n```\nnpm install skaat\n```\n\n\n## Usage\n\n```javascript\nimport { Game, Clubs } from 'skaat';\n\nconst game = new Game();\n\ngame.next('start'); // [ 'ask-bid', 2 ]\ngame.next('pass', 2); // [ 'ask-bid', 0 ]\ngame.next('bid', 0, 24); // [ 'ask-ack', 1 ]\ngame.next('pass', 1); // [ 'ask-declare', 0 ]\ngame.next('declare', 0, { suit: Clubs }); // [ 'ask-card', 1 ]\n\n...\n```\n\nThe game loop enforces the rules of [Skat](https://en.wikipedia.org/wiki/Skat_%28card_game%29) and asks you for input as needed. You can provide input via human players [or bots](./test/AutomaSpec.js).\n\n\n## Related\n\n* [skaat-app](https://github.com/nikku/skaat-app)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fskaat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikku%2Fskaat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikku%2Fskaat/lists"}