Spades

Public domain classic

Bid your tricks, keep your partner alive and beat the bags.

Spades

At a glance

Rules
Partnership Spades: you and North against West and East, 13 cards each, spades always trump
Bids
You bid first, from Nil to 13. The bid screen lists your hand by suit and suggests a bid
Match
First side to 250, or to 500 if you pick it. A tie keeps the match going
Controls
Tap a glowing card, then the trick area or Play card, or drag the card to the table. Esc opens the menu
Help
Legal cards glow, and Hint picks a card for you
Speed
Steady, Fast or Relaxed computer moves
Saves
Matches, wins, hands and your best final margin over the rivals, in this browser only
Cost
Free, no account

How this Spades plays

  • Play goes round You, West, North, East. Bidding always starts with you. The first lead moves round the table: West leads hand 1, North hand 2, East hand 3, you hand 4, and so on.
  • Follow the led suit if you can. If you cannot, any card is allowed, and a spade wins the trick unless a higher spade beats it.
  • Spades cannot be led until a spade has been played, unless your hand is all spades. Trumping another suit counts as breaking them.
  • Your side's bid is your bid plus North's. Make it and score 10 for each trick bid, plus 1 for each extra trick. Miss it and lose 10 for each trick bid.
  • Extra tricks are bags. Each time a side's bags reach 10, it loses 100 and the count carries on from what is left over.
  • Nil: a bid of 0 scores 100 if that player takes no tricks and loses 100 if they take any. Tricks taken by a Nil bidder do not count toward the partner's bid, and each one is a bag.
  • The match ends after the hand in which a side reaches the target with more points than the other.

How the computers bid and play

A computer adds up its likely tricks: 0.9 for each ace outside spades, 0.6 for a king with at least one other card of its suit, and 0.2 for a queen with at least two others. In spades it counts 0.9 for each of the ace, king and queen. Every lower spade earns 0.65 if it is the fourth-highest spade or lower, or 0.35 if it is a 9, 10 or jack among the top three. It rounds the total and keeps it between 1 and 10, so a computer never bids Nil. In the rule test, 20,000 dealt hands gave computer bids from 1 to 8, and a hand of all 13 spades bids 9.

  • Leading: a computer whose side still needs tricks leads its highest legal card. Once the side's bid is covered it leads its lowest. A computer on Nil always leads low.
  • Following: if its partner is already winning the trick, it plays its lowest card. If its side still needs tricks, it wins with the cheapest card that does the job. Otherwise it plays its lowest card that loses, or its lowest card if every one would win.
  • Around Nil: a computer bidding Nil throws its highest card that still loses. A computer whose partner bid Nil leads high and takes over a trick its partner is winning.
  • There is no randomness and one level of play. Hint uses the same rules for your seat.

Tips that follow from the rules

  • The suggested bid is the computers' own count. The bid screen runs your hand through the same sum, so you can see how North would judge a hand like yours.
  • Only you can bid Nil. The computers never do, so North will not take that risk for your side.
  • Your partner stays out of your way. North plays its lowest card on a trick you are already winning, unless you bid Nil, when it tries to take the trick off you.
  • Mind the bag count. Bags carry over between hands. On 9 bags a single extra trick costs 100, and on 8 bags two extra tricks do, so aim to take exactly your side's bid.

For a trick game where you avoid points instead of bidding for tricks, try Hearts.

Known limits

  • No undo.
  • No difficulty setting.
  • The computers never bid Nil and never bid more than 10.
  • A tie at or over the target plays another hand, so a match can run past the target.
  • A selected card is raised and drawn over the card to its right, so tap that card near its lower edge to pick it.
  • At a 1280 by 720 window the game frame is 848 pixels tall, so scroll to reach your hand or use Fullscreen.
  • Switching tabs pauses the game.

How it was built and checked

AI tool
Codex
First committed
2026-10-15, built in the same run as Hearts and Gin Rummy
Size
One HTML file of 85 lines, no game libraries
Rounds of changes
1, from the build record
Checked at build
The build report: 186,676 rule checks, 300 complete simulated deals, 3 full computer matches, and no computer choice taking longer than 0.94 ms. It lists real appearance, touch and drag, keyboard focus, portrait and landscape layout and screen-reader output as not verified
Checked since
2026-11-11: a new rule test for Spades alone (209,939 checks covering bids, legal cards, scoring with bags and Nil, the target and the tie rule, 400 hands and 40 full matches), the shared card test again (186,676 checks), and an automated browser check of the local build at 1280 by 720 and 390 by 844. Each time it bid 3, finished a hand by tapping cards and by Hint then Play card, started the next hand, set your side to 400, played that hand to the end of the match, and started again
Played on a phone
2026-11-11, a full game on a real phone before this page went live

Embed Spades on your site

Free to embed. Please keep the credit link.

<div style="position:relative;padding-top:75%;max-width:640px"><iframe src="https://aivibecodedgames.com/games/spades/" title="Spades (free browser game)" style="position:absolute;inset:0;width:100%;height:100%;border:0" loading="lazy" allow="fullscreen" allowfullscreen></iframe></div>
<p><a href="https://aivibecodedgames.com/play/spades/">Play Spades free</a> on AI Vibe Coded Games</p>

How it was vibe coded

ToolCodex
Rounds of changes: 1
First committed2026-10-15

The opening prompt

Make partnership Spades: you and a computer partner (south and north) against two computer opponents (east and west). 13 cards each, spades are trump. Each player bids a number of tricks, nil is allowed, and the side bid is the sum. Must follow suit, and spades cannot be led until broken. Score 10 points per bid trick, 1 per extra trick (bag), minus 100 for every 10 bags, plus or minus 100 for a nil. First side to 250 wins, with a setting for 500. Computers should bid by counting high cards and spades, play to make the side bid, and protect a partner who bid nil. Show the trick area and scoreboard, highlight legal cards, and offer a hint.

Game controls

  • Tap a glowing card, then the trick area
  • Bid with the number buttons, Nil is allowed
  • Hint picks a card for you

The game brief includes touch controls for phones.

Open the game on its own

More games