{"id":22292281,"url":"https://github.com/locka99/deckofcards","last_synced_at":"2025-03-25T21:46:24.368Z","repository":{"id":1606893,"uuid":"2197232","full_name":"locka99/DeckOfCards","owner":"locka99","description":"A set of classes that efficiently simulate a deck of cards","archived":false,"fork":false,"pushed_at":"2012-03-19T12:58:20.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T19:15:00.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/locka99.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-12T13:50:13.000Z","updated_at":"2014-01-30T05:30:05.000Z","dependencies_parsed_at":"2022-09-11T05:51:01.418Z","dependency_job_id":null,"html_url":"https://github.com/locka99/DeckOfCards","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/locka99%2FDeckOfCards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locka99%2FDeckOfCards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locka99%2FDeckOfCards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/locka99%2FDeckOfCards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/locka99","download_url":"https://codeload.github.com/locka99/DeckOfCards/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245550540,"owners_count":20633872,"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-12-03T17:20:52.205Z","updated_at":"2025-03-25T21:46:24.341Z","avatar_url":"https://github.com/locka99.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is an implementation of a deck of cards written in Java and released under\r\nthe LGPLv3. This code forms the core of the ad-supported Android application\r\nShuffleBot which calculates Texas Hold 'Em odds. \r\n\r\nShuffleBot runs hundreds / thousands of game simulations on mobile devices\r\nso implementation of a deck is geared towards optimal performance while\r\nmaintaining a simple programming API. \r\n\r\nSee the COPYING file for more information about LGPLv3.\r\n\r\nDeckOfCards project home:\r\n\r\nhttps://github.com/locka99/DeckOfCards\r\n\r\nFor info about ShuffleBot see here:\r\n\r\nhttps://market.android.com/details?id=com.shufflebot\r\nhttp://www.shufflebot.com/\r\n\r\nFor development musings related to DeckOfCards and ShuffleBot subscribe to this feed:\r\n\r\nhttps://joindiaspora.com/tags/shufflebot\r\n\r\nPrimary classes:\r\n\r\nDeck        Represents a deck which consists of 52 cards which are drawn or\r\n            undrawn or some combination of the two.\r\nCard        A card within a deck. Note cards are immutable and only 52 ever exist \r\n            irrespective of the number of references to them.\r\nCardPattern A wildcard that represent one or more cards based on a pattern.\r\nCardSuit    The suit of a card\r\nCardValue   The value of a card.\r\nRandom      A random number generator. It utlitises either the standard Java RNG or\r\n            a secure RNG depending on how it is called.\r\n\r\n\r\nBuild instructions:\r\n\r\nYou build using Maven like so:\r\n\r\nmvn clean install\r\n\r\nAdd DeckOfCards to another project by including a dependency on this POM, e.g. \r\n\r\n\u003cdependency\u003e\r\n  \u003cgroupId\u003ecom.adamlock\u003c/groupId\u003e\r\n  \u003cartifactId\u003eDeckOfCards\u003c/artifactId\u003e\r\n  \u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\r\n\u003c/dependency\u003e\r\n\r\n\r\nFor use in GWT, import the DeckOfCards project into your build and add this line to your module:\r\n\r\n\u003cinherits name=\"com.adamlock.DeckOfCards\" /\u003e\r\n\r\n\r\nUsing it:\r\n\r\nDeck deck = new Deck();\r\ndeck.shuffle();\r\nCard []cards = deck.deal(5);\r\nfor (Card card : cards) {\r\n   System.out.println(\"You dealt \" + card);\r\n}\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocka99%2Fdeckofcards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocka99%2Fdeckofcards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocka99%2Fdeckofcards/lists"}