{"id":22509544,"url":"https://github.com/tynab/solitaire-game","last_synced_at":"2025-08-03T13:31:26.512Z","repository":{"id":202975661,"uuid":"708529902","full_name":"Tynab/Solitaire-Game","owner":"Tynab","description":"Solitaire Game","archived":false,"fork":false,"pushed_at":"2024-04-08T18:58:19.000Z","size":29820,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-02T08:59:05.502Z","etag":null,"topics":["card","card-game","cards-game","chsarp","cs","game","game-card","game-cards","game-solitaire","game-unity","solitaire","solitaire-card-game","solitaire-game","tynab","unity","unity-engine","unity-game","unity3d","webgl","yan"],"latest_commit_sha":null,"homepage":"https://tynab.github.io/Solitaire-Game/","language":"C#","has_issues":false,"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/Tynab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"tynab","patreon":"yamiannephilim","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"polar":null,"custom":"paypal.me/yamiannephilim"}},"created_at":"2023-10-22T20:26:10.000Z","updated_at":"2024-07-17T23:48:04.000Z","dependencies_parsed_at":"2024-02-21T20:40:50.196Z","dependency_job_id":null,"html_url":"https://github.com/Tynab/Solitaire-Game","commit_stats":null,"previous_names":["tynab/solitaire-game"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tynab%2FSolitaire-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tynab%2FSolitaire-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tynab%2FSolitaire-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tynab%2FSolitaire-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tynab","download_url":"https://codeload.github.com/Tynab/Solitaire-Game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548537,"owners_count":17935221,"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","card-game","cards-game","chsarp","cs","game","game-card","game-cards","game-solitaire","game-unity","solitaire","solitaire-card-game","solitaire-game","tynab","unity","unity-engine","unity-game","unity3d","webgl","yan"],"created_at":"2024-12-07T01:29:32.134Z","updated_at":"2024-12-07T01:29:32.698Z","avatar_url":"https://github.com/Tynab.png","language":"C#","funding_links":["https://github.com/sponsors/tynab","https://patreon.com/yamiannephilim","paypal.me/yamiannephilim"],"categories":[],"sub_categories":[],"readme":"# SOLITAIRE GAME\nSolitaire, also known as Klondike or Patience, is a classic card game that has been a popular pastime for generations. This single-player game is known for its simplicity and addictive nature, making it a favorite for those looking to pass the time or challenge their strategic thinking.\n\nThe objective of Solitaire is to move all the cards from a shuffled deck into four foundation piles, one for each suit (hearts, diamonds, clubs, and spades). The cards must be arranged in ascending order, starting with the Ace and ending with the King.\n\nThe game begins with seven tableau piles, which are initially dealt with a varying number of face-down and face-up cards. Players can move cards between tableau piles, either building them in descending numerical order and alternating colors, or by transferring a sequence of cards to an open foundation pile. Empty tableau slots can be filled with a King or any valid sequence of cards.\n\nSolitaire is a game of strategy, requiring careful planning and decision-making. Success in Solitaire depends on your ability to create sequences, uncover hidden cards, and ultimately, move all the cards to the foundation piles. The game is won when all four foundation piles are complete, with each suit's cards arranged in ascending order.\n\nWhether you're a casual player or a Solitaire enthusiast, this timeless game offers hours of entertainment and a satisfying sense of accomplishment when you successfully solve the puzzle. Solitaire is available on a variety of platforms, from physical card decks to computer and mobile applications, making it accessible to players of all ages and skill levels.\n\n## LINK DEMO\n\u003cdiv align='center'\u003e\n\n[Click here to play the game](https://tynab.github.io/Solitaire-Game)\n\n\u003c/div\u003e\n\n## IMAGE DEMO\n\u003cp align='center'\u003e\n\u003cimg src='pic/0.jpg'\u003e\u003c/img\u003e\n\u003c/p\u003e\n\n## CODE DEMO\n```c#\npublic bool StackAble(GameObject selected)\n{\n    var s1 = Slot.GetComponent\u003cSelectable\u003e();\n    var s2 = selected.GetComponent\u003cSelectable\u003e();\n\n    return !s2.IsDeckPile \u0026\u0026 (s2.Top ? (s1.Suit == s2.Suit || s1.Values is 1 \u0026\u0026 s2.Suit is null) \u0026\u0026 s1.Values == s2.Values + 1 : s1.Values == s2.Values - 1 \u0026\u0026 s1.Suit is not \"C\" and not \"S\" != s2.Suit is not \"C\" and not \"S\");\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftynab%2Fsolitaire-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftynab%2Fsolitaire-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftynab%2Fsolitaire-game/lists"}