Eleven classic solitaire games and nine games for two to four players in one ad-free app, from Klondike and FreeCell to Gin Rummy, Crazy Eights and RatSlap.
CardTastic (CardTastic: Solitaire & More on the App Store, where plain CardTastic was taken) is a card game collection for iPhone, iPad, Android, and web, with no ads and no sign-in. Everything but Daily Deals plays offline. Built with Expo, React Native, Reanimated, and Redux Toolkit, it's part of a family of games built on my open-source @tastic game-engine and @rific Expo utility packages. App Store and Google Play release in progress.
- Eleven solitaire games: Klondike, FreeCell, Yukon, Canfield, Forty Thieves, Spider, Scorpion, Pyramid, Golf, TriPeaks, and Aces Up. Each Home tile shows a thumbnail of the game's opening deal, and its rules are one tap away (the info button on the tile, or the game's title during play).
- Nine games for two to four players: RatSlap (Egyptian Ratscrew), Slapjack, Speed, War, Six-Card Golf, and Trash face to face on one device, and Gin Rummy, Crazy Eights, and Four Crowns passing it between turns, against people or the computer. Home splits the games into Solitaire and Two Player tabs.
- Daily Deals: each solitaire game deals one shuffle a day under its default rules, the same for everyone, started from that game's setup screen beside its rules. Our game server replays every win before ranking it on the day's board, which shows a tag and color, never a name. A Daily is always a profile's (a guest types a name and one is made), a profile's first Daily win asks before it shows on a board, Hint and Auto Hint are off (Undo stays, and undone moves still count), and each profile's Edit Profile screen (Settings opens yours) can hide its scores or delete its online data from the server. Nothing is sent until you start a Daily, and it never asks for an email or a password.
- Rule variants: Draw 1 or Draw 3 for Klondike and Canfield, 1, 2, or 4 suits for Spider, No Wrap or K-A Wrap for Golf and TriPeaks, Assisted or Classic for Scorpion (Assisted holds three cards back to deal in later), and Single Card or Allow Runs for Forty Thieves. Each is set from that game's Settings dialog.
- Tap or drag: tap a card to send it to its best move, or drag it (along with the cards on top of it, where the rules allow) to the pile you want. In Pyramid, tap two exposed cards that add up to 13, or a lone King. A tapped card with nowhere to go shakes, and an illegal drop springs back.
- Undo, Hint, and New Game: undo has no limit, and holding Undo keeps rewinding one move at a time. Hint rings a legal move, or the stock when drawing is the move. New Game asks for confirmation before abandoning a deal in progress.
- Scoring: score is moves plus seconds, and lower is better. The clock starts on the first move and pauses while the game is left, the app is in the background, or Rules or Settings is open. Every move counts, including one later undone and every card auto-played to the foundations (so Auto-Move only saves taps); an Undo press and a hint are free. Each game and rule set (Spider 1/2/4 suits, Klondike Draw 1/3, and so on) has a par, a good win's moves, time, and score, from a simulated Hint-following player; a win shows Moves, Score, and Time, each over its par.
- Auto-play: with Auto-Move to Foundation on, safe cards follow your own play to the foundations, and a solved board files itself away (Klondike, FreeCell, Yukon, Canfield, Forty Thieves). Spider clears a completed suit run on its own.
- Dead-end detection: Aces Up, Golf, TriPeaks, Forty Thieves, and Scorpion show No Moves Left, with an Undo button, when a deal can no longer be won. The loss is recorded when the player deals a new game or leaves; an Undo cancels it.
- Win celebration: fireworks and a bouncing card cascade.
- Card styles: four faces (Compact, Numeric, Decorated, Tarot) and three backs (Geometric, Ornate, Plain), plus an Invert Dark Mode Colors option that gives dark mode near-black faces with white ink for spades and clubs. The card artwork is based on SVG-cards by David Bellot and Huub de Beer (LGPL-2.1), with numerals in DejaVu Serif.
- Player profiles: every game opens on a setup screen with who's playing first, and the profile picked there tints the card backs, the felt, and the app theme with its color. Guests can pick a table color of their own. On iOS the roster is shared with my other games through an App Group.
- Stats and achievements: a Stats & Achievements screen with overall, per game and rule set (played, won, lost, streak, and fastest, fewest moves and lowest score next to par), and daily activity records, viewable for all profiles or one, plus 41 bronze/silver/gold achievements.
- Picks up where you left off: every game's board and undo history are saved, and relaunching the app reopens the game you were playing.
- Turns with the phone: the screen turns with the device into portrait or a wide landscape layout, and on iPad it runs in every orientation and in Split View. The two-player tables hold a phone upright, so it doesn't turn while it lies between the players.
- How-to-play guide: three short cards on first launch, replayable from Settings on Home.
- Settings: sound, haptics, appearance, Auto-Move to Foundation, Dim Unplayable Cards, Invert Dark Mode Colors, Reduce Motion (skips the deal and draw animations), card face and back styles, and a manual update check.
- Pure rules layer: the solitaire games' rules are
@tastic/cardtastic-engine, the same package the game server runs to replay Daily Deals, re-exported bysrc/engine/and each solitaire game'srules.ts. Each implements oneGameController<TState>contract:newGame(seed),legalMoves,tryMove,drawStock,isWon,isStuck, plus optional hooks for tap-to-move, hint ranking, and auto-play. States are immutable and moves return a new state ornull. Deals are shuffled by a seeded mulberry32 PRNG, so a seed always reproduces the same deal in tests. Shared engine code covers decks and piles, scoring, tap-to-move target picking, safe auto-play to the foundations, and hints, which rank the game's ownlegalMovesinstead of running a separate solver. - Three flight systems: card motion is split by job. A single drag ghost layer handles drags and tap-to-move, using registries of on-screen card and drop-zone positions. A separate deal layer flies many cards at once (the opening deal, stock draws, undo returns) and can be skipped with a tap. A third layer runs the win cascade. Each game's
dealSequence.tsdecouples the visual deal order from how the rules store the board. - Pre-rendered card faces: a live card face is over a dozen native views, so
scripts/generate-card-face-bitmaps.mjsrenders@tastic/cards' realCardFacethrough react-native-web in headless Chrome and saves every face as a PNG (4 styles, 2 ink variants, 52 cards), and the Home thumbnails the same way. On the board each face is oneImage, and a landing card's flight stays on top until that bitmap has actually painted, so a card never flashes blank. - Daily runs: every deal records its run, each counted move, draw, and undo, and saves carry it. A Daily win goes to the server as that run, which it replays with the same engine before ranking it, so the app and the server must agree on
RULES_VERSION. Each profile that plays a Daily gets an anonymous server player of its own (@tastic/profile/online), named onlyCardTastic, its key in the Keychain (the site's storage in a browser); its tag and color go up only once the player says yes, and it's deleted from the server with its profile. - Rotation: the OS turns the screen. The two-player tables lock a phone to portrait with
expo-screen-orientationwhile they're up. - State and persistence: Redux Toolkit with redux-persist on AsyncStorage holds settings, theme, sound and haptics, profiles, table color, stats and achievements, and guide state. Each game's saved board lives under its own key, and saves are coalesced (written once moves pause, at most every 3 seconds during a long burst) and flushed when the app goes to the background. A persist
migraterecognizes players from the pre-Redux build so they skip the guide. - Stats:
@tastic/achievementsrecords every win, loss (an abandoned deal or a dead board), and hint into device-wide and per-profile buckets, and the 41-entry catalog is evaluated as pure predicates over those stats. - Sound: card sounds play from pooled
expo-audioplayers through@rific/feedback-press, with a separate web implementation to avoid audio element latency, and a short throttle so skipping a deal plays a riffle instead of dozens of overlapping clicks. - Updates: over-the-air updates ship through
expo-updatesand@rific/updater. - Tests: Jest suites covering the engine, every game's rules, board models and deal order, screen-level win, undo, and auto-play flows, the deal, drag, and win-cascade layers, card-face bitmaps, the stats engine, Redux slices and persist migration, saved games, Daily Deals and their recorded runs, profiles, and the guide copy. CI runs
npm run verifyon pushes and pull requests tomain.
| Package | Used for |
|---|---|
@tastic/shell |
The pack around the games: Home, setup screens and seats, play routes, the stats screen, profiles, and the guide's state |
@tastic/cardtastic-engine |
The solitaire rules and recorded runs, shared with the game server that replays Daily Deals |
@tastic/core |
Layout math (content bounds, clamping) |
@tastic/cards |
Card faces, backs, and the decorated art pack, card size context, shared card vocabulary |
@tastic/hud |
Screen frame, settings and update dialogs, stats screen rows, popovers and color picker, how-to-play guide |
@tastic/profile |
Player profiles, picker, roster and Edit Profile screens, shared App Group sync, and each profile's anonymous online player (@tastic/profile/online) |
@tastic/achievements |
Tiered achievement catalog, win and day streaks, Redux-backed persistence |
@tastic/sprites |
Fireworks on a win |
@tastic/split-screen |
Peer dependency of @tastic/hud and @tastic/shell |
@tastic/edge-guard |
Peer dependency of @tastic/shell |
@rific/heatmap |
The stats screen's play calendar |
@rific/gestures |
Peer dependency of @tastic/shell and @tastic/profile |
@rific/core |
Redux settings slice factory, safe back navigation |
@rific/auto-paper |
React Native Paper theming from the profile color, light/dark appearance |
@rific/feedback-press |
Buttons with haptic and sound feedback, pooled card sounds |
@rific/toaster |
Toast notifications (no moves for a hint, update errors) |
@rific/splash-gate |
Keeps the splash screen up until the theme, fonts, and profiles are ready |
@rific/updater |
OTA update checks behind @tastic/hud's update dialog |
@rific/focus-chain |
Peer dependency of @tastic/profile for form focus |
npm install
npm run ios # or: npm run android / npm run webThe app uses native code that Expo Go doesn't include (the @tastic/core config plugin and @tastic/profile's native iOS shared-roster module), so iOS and Android run as a development build (expo-dev-client). npm run ios and npm run android build it locally, and once it's installed npm run client starts Metro for it. npm install also runs setup-skia-web, which copies Skia's canvaskit.wasm into public/ for the web target.
npm run verify # lint (expo lint) + Jest + typecheck (tsc)src/
app/ expo-router routes: home, each game's setup and play screens, Daily boards, stats, profiles
components/ playing cards and piles, drag, deal, and win-cascade layers, game chrome, dialogs, theme, guide art
constants/ per-game rules copy, guide steps, theme seed, release info
engine/ the card engine, re-exported from @tastic/cardtastic-engine, plus par, top wins, and deal runs
games/ one folder per game (rules, board model, deal order, screen, settings), plus shared hooks and cells
hooks/ settings hook
redux/ store and persisted slices (settings, saved games, achievements, profiles, table color, guide, Daily Deals)
stores/ stats engine, achievement catalog, saved-game, profile, online player, and Daily Deals APIs
types/ persisted settings type
utils/ navigation and splash-gate wiring
testUtils/ test helpers
__tests__/ Jest suites
__mocks__/ manual mocks for native and Expo modules
The code is released under the MIT License, see LICENSE.
The game's name, logo, and icons, and the original artwork and audio in this repository, are not covered by that license and remain all rights reserved. If you fork it, please give your version its own name and look.
The card artwork derived from SVG-cards (David Bellot and Huub de Beer) is not original to this project and remains under the LGPL-2.1, see the artwork notice in @tastic/cards.