A complete, mobile-ready Gin Rummy game for Unity — exact rules engine, fair AI, drag & drop cards, unit-tested and fully documented.Ready to use solution for: Windows, Mac OS X, Android, iOS, Windows Phone and WebGL.A polished, production-ready Gin Rummy card game for Unity 6. Press Play and you have a full game: splash screen, match flow, animated drag & drop card play against an AI opponent, round and match scoring, and a rematch loop. Ship it as-is, reskin it, or use the engine as the foundation of your own card game.A real rules engine, not just scripts. All game logic lives in GinRummy.Rules — a pure C# assembly with no UnityEngine dependency. The meld solver is exact: it searches all non-overlapping meld combinations, so the displayed deadwood is always the true minimum (greedy solvers get overlapping run/set hands wrong). Knock, Gin, Big Gin, lay-offs and undercuts are all implemented to the classic rules and covered by 40 EditMode unit tests, plus a PlayMode smoke test that auto-plays the real game scene.Fair, configurable AI. Three difficulty levels (Random / Greedy / Tracking) driven by ScriptableObject profiles. Bots see only public information — their own hand, the discard pile and what the opponent picked up — so they never cheat. Writing your own strategy takes about 20 lines of plain, unit-testable C#.Customize without code. Rule variants (knock threshold, Gin/Big Gin/undercut bonuses, points to win) are ScriptableObject assets — duplicate one to get e.g. straight gin. Card faces are plain PNGs loaded by path, so reskinning means replacing textures. One shared Card prefab, a neutral brandable splash screen, and editor setup tools (auto-wire scene references, recreate default settings) included.Headless-ready. The deterministic GinRoundEngine / GinMatch state machine runs without Unity — use it for simulations, balancing, or a server-authoritative backend.Everything is documented in the included manual: quick start (60 seconds), architecture, configuration, extending the AI, reskinning and troubleshooting. Clean, commented source code makes this a great learning project as well as a shippable game.-- -- --University of Games small research center for indie game developers. This place has always beed dedicated for everyone to share passion, knowledge and adventures in game industry. I wish it would become home to in-depth explanations and ready to use solutions which help you solve problems and growth. Thanks to your donations we can create even more content and support developers, students and teachers all over the world.The project includes well-developed technical documentation. Therefore, it is also an ideal form of learning for novice game developers!This project includes:♠ Ready to use game for any platform♠ Full game source code♠ Well-prepared documentation♠ Drag&drop or Click&drop♠ Animated cards♠ Ready to use with DOTween♠ Support Portrait or Landscape♠ 2 players game mode!♠ Complete 2-player game vs AI: splash → menu → rounds → match end → rematch♠ Exact rules engine in pure C# (GinRummy.Rules, no UnityEngine dependency) — true minimum deadwood, knock/Gin/Big Gin, lay-offs, undercuts♠ Three fair AI difficulties (Random / Greedy / Tracking) — bots use public information only, never peek at your hand♠ Rule variants and bot difficulty as ScriptableObject assets — no code required♠ Custom AI strategies via a simple IBotStrategy interface (~20 lines of C#)♠ Deterministic headless engine (GinRoundEngine/GinMatch) for simulations or servers♠ Drag & drop and click-to-play card input, animated cards♠ Self-contained tween library included — no DOTween or other third-party dependencies (only Unity UI)♠ Easy reskinning: swap card PNGs by path, single shared Card prefab, neutral brandable splash♠ Editor tools: scene auto-wiring, one-click settings asset creation♠ 40 EditMode unit tests + PlayMode scene smoke test♠ Full source code and in-package manual (quick start, architecture, extending, troubleshooting)♠ Unity 6000.0+ (built with 6000.5.4f1); builds for Windows, macOS, Android, iOS and WebGL; portrait, mobile-first layout




