{"id":23045353,"url":"https://github.com/mykeels/whot","last_synced_at":"2025-07-12T02:02:55.612Z","repository":{"id":93602220,"uuid":"112966743","full_name":"mykeels/whot","owner":"mykeels","description":"A Game API for the Nigerian Whot Card Game. https://github.com/mykeels/whot-server, https://github.com/CodeByOmar/whot-app","archived":false,"fork":false,"pushed_at":"2022-11-11T01:36:06.000Z","size":385,"stargazers_count":55,"open_issues_count":0,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-01T08:06:59.607Z","etag":null,"topics":["cards","circle","js","market","pickthree","picktwo","square","suspension","whot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mykeels.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-03T21:50:26.000Z","updated_at":"2024-12-07T20:05:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4cccf18-977d-430d-9e99-f2f7703727ec","html_url":"https://github.com/mykeels/whot","commit_stats":{"total_commits":112,"total_committers":3,"mean_commits":"37.333333333333336","dds":0.0267857142857143,"last_synced_commit":"fe5be219bd6447c89a68560a0a6c76d224e2f841"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mykeels/whot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fwhot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fwhot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fwhot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fwhot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mykeels","download_url":"https://codeload.github.com/mykeels/whot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mykeels%2Fwhot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923369,"owners_count":23683735,"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":["cards","circle","js","market","pickthree","picktwo","square","suspension","whot"],"created_at":"2024-12-15T21:19:55.856Z","updated_at":"2025-07-12T02:02:55.524Z","avatar_url":"https://github.com/mykeels.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whot!\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mykeels/whot/actions/workflows/ci-app-test.yml\"\u003e\n    \u003cimg\n      src=\"https://github.com/mykeels/whot/actions/workflows/ci-app-test.yml/badge.svg\"\n      alt=\"build status\"\n    /\u003e\n  \u003c/a\u003e\n  \u003ca\n    href=\"https://github.com/mykeels/whot/graphs/contributors\"\n    alt=\"Contributors\"\n  \u003e\n    \u003cimg src=\"https://img.shields.io/github/contributors/mykeels/whot\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=mykeels\"\u003e\n    \u003cimg\n      src=\"https://img.shields.io/twitter/follow/mykeels?style=social\u0026logo=twitter\"\n      alt=\"follow on Twitter\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\nWhot! is the national card game of Nigeria. It is played by young and old, and has come to be associated with fond memories, by me and a lot of people I know. [Read More](https://www.pagat.com/com/whot.html)\n\nThis is a JS Library that will facilitate the Nigerian Whot! Game Play.\n\n## Why\n\nI have started this project because I hope someone else builds a beautiful UI/UX around it (cos I can't).\n\nI also want to play this game with my friends and family from my phone and laptop, and experience the same amount of fun I did playing it as a child.\n\n## How\n\n```bash\nnpm install whot\n```\n\n```ts\nimport Game from \"whot\";\n\nconst game = new Game({\n  noOfDecks: 1, //number of card decks to be used\n  noOfPlayers: 4,\n});\n```\n\nYou can subscribe to the [events](./docs/events.md) that the [`Game`](./docs/game.md) instance offers via its `emitter` property.\n\nTo play a card:\n\n```js\nconst player = game.turn.next();\n\nif (player.canPlay()) {\n  /** pick a random card from the player's hand */\n  const compatibleCardIndex = player\n    .hand()\n    .findIndex((card) =\u003e card.matches(game.pile.top()));\n  player.play(compatibleCardIndex);\n  game.turn.execute(game.pile.top());\n} else {\n  const marketCards = player.pick();\n  game.turn.switch();\n}\n```\n\nRead more in [docs](./docs)\n\n### Testing\n\n- See [test suite](./tests)\n\n- Run `npm test`\n\n## Who\n\nIf you're interested, see the [Contribution Guide](./CONTRIBUTION.md).\n\n## When\n\nOn-going! Now on version 1.0.6 🙌\n\n## Related Projects\n\n- [HTTP Server](https://github.com/mykeels/whot-server) by @mykeels\n- [Web App](https://github.com/CodeByOmar/whot-app) by @CodeByOmar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Fwhot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmykeels%2Fwhot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmykeels%2Fwhot/lists"}