Skip to content

Latest commit

 

History

68 Commits

Folders and files

Repository files navigation

Dealers Choice: dozens of classic card games

Dealer's Choice

A warm, old-fashioned card room in your browser.
Seventeen classic card games, a fifty-one-layout solitaire parlor, and a table full of friendly opponents.

▶  Play now   ·   The games   ·   Solitaire parlor   ·   Run it locally


Pull up a chair, pick a table and play the card games you grew up with: bid a Pinochle hand with your partner, shoot the moon in Hearts, peg your way to 121 in Cribbage, or settle into the solitaire parlor for a quiet hand on your own. No sign-up, no downloads, nothing to install. Open the page and the cards are dealt.

Dealer's Choice has its own look and sound throughout: the Parlor card deck and table felts, a cast of twelve characters to play against, a relaxed lounge-jazz soundtrack and original sound effects, all made for this game.

The games

🂡 Trick-taking

Bid it, call trump, win the tricks.

Game Players What you're in for
Pinochle 2 or 4 Five ways to play: Partnership Auction, Two-Handed, Double-Pack, Partnership and Cutthroat
Bridge 4 · partners A full auction and play, with Rubber or Chicago scoring
Spades 4 · partners Bid your tricks, risk a nil or double nil, and watch out for bags
Hearts 4 Pass three, dodge the queen of spades, or shoot the moon
Euchre 4 · partners Bowers, loners and stick the dealer
Pitch 4 · cutthroat High, low, jack and game
Skat 3 The German classic: bid, pick up the skat and declare your game
Tarot 4 The French game of trumps, bouts and the Excuse

🃏 Melding and drawing

Sets, runs and pegs.

Game Players What you're in for
Gin Rummy 2 Build your melds and knock, or hold out for gin; Oklahoma Gin too
Canasta 4 · partners Two decks, wild twos and jokers, red threes and canastas
Cribbage 2 Fifteen-two, fifteen-four… pegging your way around the board to 121
Crazy Eights 2–4 Eights are wild, with a very crazy mode

🎲 Casino

Chips on the felt.

Game Players What you're in for
Poker 2–6 Five-card draw: ante up, bet, raise, draw and bluff

🐟 Family table

Quick games for every age.

Game Players What you're in for
Go Fish 4 Got any fives?
Old Maid 4 Don't get stuck with the odd card
War 2 Flip, compare and declare war
Memory Match 1–2 Turn them over and find every pair

The solitaire parlor

Fifty-one solitaire layouts, each with its own How to play card, plus Undo, Auto-finish and a fresh deal whenever you want one.

Layouts
One deck Aces Up · Baker's Dozen · Baroness · Beleaguered Castle · Betsy Ross · Bowling · Bristol · Calculation · Canfield · Clock · Cribbage Square · Eagle Wing · Eight Off · Eliminator · Euchre · Flower Garden · Fortress · Four Free · Four Seasons · Gaps · Golf · Klondike · Klondike (draw 3) · La Belle Lucie · Nestor · Penguin · Poker Square · Pyramid · Scorpion · Seahaven Towers · Shamrocks · Slide · Spiderette · Strategy · Triplets · Yukon
Two decks Aces and Kings · Alhambra · Batsford · Colorado · Forty Thieves · Mount Olympus · Red and Black · Spider · Sultan · Terrace
Arcade 3 Towers · Best 21 · Fast 21 · Pick 2 · Sum 11 (timed, scored rounds)

Step into the card room

The Dealer's Choice lobby: tonight's table and the card room

  • A cast of characters. Twelve computer partners and opponents, each with a portrait and a personality, who bid, meld and play by each game's real rules: careful Mabel, flashy Dex, the Colonel, chatty Rosa, Hank, Pip, Odette, gentle Gus, by-the-book Nova, the Captain, Lou and Ivy. Some have favourite games, so you may find Odette waiting at the Tarot table and the Captain at the cribbage board.
  • The Parlor deck. A mid-century card design in cream, ink, brass and deep green, with double-ended court cards, its own jokers and a fully illustrated Tarot.
  • Make the table yours. Six card backs and six table surfaces (green, oxblood and midnight felt, walnut, linen and slate), a classic drawn deck if you prefer, and your own portrait at the table. It's all under Table settings.
  • Real table pieces. A dealer button, chip stacks at the poker table, a wooden cribbage board with brass and red pegs, a tray for passing cards and a trump marker on the felt.
  • Music that follows you. Six original lounge-jazz tracks play in a shuffled order that carries on seamlessly as you move between the lobby and the tables, and never repeats a song back to back.
  • Sounds of the table. Dealing, shuffling, tricks, chips and wins, with separate volume controls for music and game sounds.
  • Remembers you. Your name, portrait, card style, card back, table and volumes are kept in your browser, and games in progress pick up where you left off.
  • Plays anywhere. Desktop, tablet or phone, in any modern browser.

Play it on your own computer

You need Node.js 20 or newer. There is nothing else to install.

git clone https://github.com/jimerb/Dealers-Choice.git
cd Dealers-Choice/web && npm start

Then open http://localhost:4449. To run the test suite:

cd Dealers-Choice/web && npm test

How it's built

A small web app with no dependencies and no build step: plain HTML, CSS and JavaScript modules, served by a tiny Node server locally and by GitHub Pages online.

web/server.mjs                 local server
web/public/index.html          site shell: hosts the music player and shows every screen in a frame
web/public/lobby.html          the lobby
web/public/play.html           the shared table that runs most of the card games
web/public/pinochle.html       the Pinochle table
web/public/solitaire.html      the solitaire parlor
web/public/js/games/           one rules engine and computer player per game
web/public/js/solitaire/       the solitaire engine and layouts
web/public/js/core/            cards, table, cast, table pieces, sound and music
web/public/js/skin.js          card styles, backs and table surfaces
web/public/assets/             card art, felts, portraits, table pieces, sounds and music
web/test/                      rules and engine tests
art/parlor/                    source art, print-quality card masters and proof sheets
tools/art/                     scripts that build the card deck, the table art and the sound effects

To rebuild the Parlor deck or the sound effects after changing their sources, run these from the repository root:

python3 -I tools/art/build_parlor.py
python3 -I tools/art/build_sounds.py

Shuffle up and deal. ♠ ♥ ♣ ♦