{"id":16793490,"url":"https://github.com/mdp/hoyle","last_synced_at":"2025-03-22T01:30:48.558Z","repository":{"id":4678529,"uuid":"5825038","full_name":"mdp/hoyle","owner":"mdp","description":"A javascript poker hand evaluator","archived":false,"fork":false,"pushed_at":"2022-12-30T17:44:26.000Z","size":95,"stargazers_count":27,"open_issues_count":2,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T06:51:26.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/mdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-15T23:03:34.000Z","updated_at":"2024-10-25T09:00:02.000Z","dependencies_parsed_at":"2023-01-13T13:12:24.389Z","dependency_job_id":null,"html_url":"https://github.com/mdp/hoyle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fhoyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fhoyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fhoyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdp%2Fhoyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdp","download_url":"https://codeload.github.com/mdp/hoyle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893346,"owners_count":20527574,"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-13T08:49:27.341Z","updated_at":"2025-03-22T01:30:48.298Z","avatar_url":"https://github.com/mdp.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build\nStatus](https://secure.travis-ci.org/mdp/hoyle.png)](http://travis-ci.org/mdp/hoyle)\n\n![Hoyle](http://img.mdp.im.s3.amazonaws.com/2013m15u0001_2008035_0000084.jpg_18631321mjcge.jpg)\n\n# Hoyle\n\n## A Javascript poker hand evaluator (Written in Coffeescript)\n\n### Example\n\n    Hand = require('hoyle').Hand\n\n    describe \"Finding winning hands\", -\u003e\n      it \"should detect the winning hand from a list\", -\u003e\n        gary = Hand.make([\"2s\",\"3s\",\"4h\",\"5c\",\"As\",\"Ts\",\"8d\"])\n        mike = Hand.make([\"5s\",\"Ts\",\"3h\",\"Ac\",\"2s\",\"Ts\",\"8d\"])\n        steve = Hand.make([\"5s\",\"5h\",\"3s\",\"3c\",\"2s\",\"Ts\",\"3d\"])\n        winners = Hand.pickWinners([gary, mike, steve])\n        winners.length.should.equal 1\n        winners[0].should.equal steve\n        winners[0].name.should.equal \"Full house\"\n\n### Install\n\n    npm install hoyle\n\n### Install and use locally\n\n    git clone git://github.com/mdp/hoyle.git\n    cd hoyle\n    npm install\n    npm run-script prepublish\n    npm link\n\n### Testing\n\n    npm install\n    npm test\n\n### Notes\n\n- Handles making the best poker hand out of 5-7 cards\n- Written for code clarity, not speed (But still plenty fast for many\nuses) See\n[\"The Great Poker Hand Evaluator\nRoundup\"](http://web.archive.org/web/20140625212722/http://codingthewheel.com/archives/poker-hand-evaluator-roundup/)\nfor a deeper dive into speedy poker hand evaluators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdp%2Fhoyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdp%2Fhoyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdp%2Fhoyle/lists"}