Classic 4-player trick-taking card game — partner with AI against two opponents
Spades is one of the most beloved and strategically rich trick-taking card games ever devised. Born in the United States during the 1930s, it became a staple of college campuses, military barracks, and family gatherings throughout the 20th century. Unlike its predecessors Whist and Bridge, Spades simplified the bidding process while keeping the partnership dynamics that make trick-taking games so compelling. Today it remains one of the most popular card games in the world, played both physically and online by tens of millions of people. The game is played with a standard 52-card deck divided equally among four players seated in a square, with partners sitting opposite each other. In this implementation you play as South, your AI partner sits at North, and two AI opponents occupy East and West. Spades are always the trump suit — they beat every card in every other suit, which gives the game its name and its central tactical tension. Every hand of Spades begins with the bidding phase. Starting from the player to the dealer's left, each player declares how many tricks — out of the 13 total — they expect to win. This commitment creates the round's team contracts: the North-South total and the East-West total. The team that reaches or exceeds their combined bid earns ten points per trick bid, plus one point for each overtrick (called a bag). Teams that fall short — a result called being set — lose ten points for every trick they bid. This simple scoring structure creates enormous tension: bid too low and you leave points on the table, bid too high and you risk losing a large chunk of your score. Overtricks seem harmless at first, but they accumulate dangerously. Every time your team collects ten bags across multiple rounds, you lose one hundred points — a penalty that can turn a comfortable lead into a deficit. Experienced players deliberately duck tricks (let opponents win them) when their team is comfortably ahead, sacrificing small points now to avoid catastrophic bag penalties later. Managing bags is one of the most nuanced aspects of competitive Spades play. Two special bids add dramatic stakes. A Nil bid is a declaration that you will win zero tricks in the round. If you succeed, your team earns one hundred bonus points; if you take even one trick, you lose one hundred points. Your partner's bid and tricks still count toward the team contract as normal, so a nil bid requires careful coordination — your partner must work to prevent you from winning any tricks, sometimes sacrificing their own bid to cover yours. A Blind Nil is even bolder: you declare nil before seeing your cards, earning two hundred points for success or losing two hundred for failure. The play phase follows strict rules that reward careful hand management. The player who wins each trick leads the next one. Every player must follow the suit led if they have it. If they cannot follow suit, they may play any card — including a spade. This is how spades get broken: once any player plays a spade when unable to follow suit, spades are considered broken and can be led freely from that point forward. Before spades are broken, you cannot lead a spade unless your entire hand consists only of spades. The highest card of the led suit wins the trick, unless one or more spades were played — in which case, the highest spade wins, regardless of what suit was led. This trump mechanic gives spades a special power that makes every decision about when to use them feel weighty. Should you ruff now and establish early spade control, or save your spades for critical moments later? This implementation features three AI difficulty levels. Easy AI counts high cards for bidding and plays randomly among legal cards. Medium AI applies intermediate strategy — tracking who has played what suit, covering nil bids, and avoiding unnecessary bags. Hard AI performs full card tracking, remembers every card played in the round, and makes probability-based decisions about when to win tricks, when to duck, and how to protect a partner's nil bid. Additional features include a visual bag meter showing your team's current bag count with a warning indicator at eight bags, a per-round score history log, in-session statistics tracking wins and current streak, undo for the last card play, configurable target score (200, 300, or 500 points), and speed controls to adjust how quickly AI players take their turns. All game state is managed locally in your browser — no account or login required.
Understanding Spades
What Is Spades?
Spades is a partnership trick-taking card game for four players, played in two teams of two with partners sitting opposite each other. The full 52-card deck is dealt evenly (13 cards each). Spades are always trump — they beat all other suits. Before play begins, each player bids how many tricks they expect to win. Teams score ten points per bid trick if they meet their contract, plus one point per overtrick (bag), or lose ten points per trick bid if they fail. Every ten accumulated bags costs a team 100 points. The game ends when a team reaches the target score, typically 500 points.
¿Cómo se calcula la puntuación?
After all 13 tricks are played, each team's score for the round is calculated separately. If the team met or exceeded their combined bid: round score = bid × 10 + overtricks. Overtricks are added to the team's running bag total. If the team fell short: round score = -(bid × 10). Nil bids are scored independently: a successful nil adds 100 points to the team's score; a failed nil subtracts 100. Blind nil adds or subtracts 200. When a team's total bags reach 10, 100 points are deducted and the bag count resets to zero (keeping any remainder).
Strategy and Key Concepts
Winning at Spades requires balancing aggression and caution. Bidding accurately is foundational — count your aces, kings, and high spades as guaranteed tricks; queens and jacks are conditional. Factor in voids (suits you hold no cards in) since you can always trump those leads. During play, follow suit unless you cannot. Trumping with a low spade when void is powerful but uses a resource. Watch which high cards have been played to know when your queen or jack is now the highest remaining card in a suit. Protect your partner's nil bid by leading suits they are likely void in and winning tricks they might take.
Special Bids and Rules
A Nil bid declares the player will win zero tricks. It is scored independently from the partner's bid — the partner still needs to meet their solo bid while preventing the nil bidder from taking tricks. Blind Nil must be declared before seeing your hand and carries double the stakes (±200). The spades-must-break rule means you cannot lead spades until a player has played a spade on a non-spade trick, or until you have only spades left. Boston — winning all 13 tricks — is a remarkable achievement that some rule sets award bonus points for, though standard scoring already rewards it through the bag count.
How to Play Spades
Configure and Deal
Choose AI difficulty (Easy, Medium, or Hard), your target score (200, 300, or 500 points), and AI play speed. Click New Game to shuffle and deal 13 cards to each player. Your hand appears at the bottom, sorted by suit. North is your AI partner; East and West are your opponents.
Place Your Bid
When it is your turn to bid, click a number from 0 to 13 to declare how many tricks you expect to win. Click Nil to bid zero tricks (±100 points). Click Blind Nil before seeing your cards for a high-risk ±200 bid. Watch the AI players bid in turn — the combined N/S and E/W bids form the team contracts.
Play Tricks
On your turn, playable cards are bright and clickable; unplayable cards are dimmed. You must follow the suit that was led if you have it. If you cannot follow suit, you may play any card including a spade. The highest card of the led suit wins unless a spade was played — the highest spade wins. Trick winners lead the next trick.
Score and Repeat
After all 13 tricks, scores are calculated: 10 points per bid trick if the contract was met, plus 1 per overtrick (bag). Failing the contract costs 10 per bid trick. Every 10 accumulated bags costs 100 points. Nil bonuses or penalties are added on top. Rounds continue until a team reaches the target score.
Preguntas Frecuentes
What happens if I get too many bags?
Bags are overtricks — tricks your team wins beyond what you bid. Each bag adds 1 point to your score in the short term, but once your team accumulates 10 bags across any number of rounds, you immediately lose 100 points and your bag counter resets to zero (carrying over any remainder). For example, if you had 9 bags and gained 3 more, you would lose 100 points and your bag total would reset to 2. This penalty mechanic means that winning too many tricks is actually dangerous if you are already sitting near 8 or 9 bags. Experienced players deliberately duck tricks (play low to lose) when they need to avoid bags, accepting a slightly lower round score to dodge the 100-point penalty.
What is the difference between Nil and Blind Nil?
A Nil bid is a declaration that you will win exactly zero tricks in the round, made after seeing your cards. If you take no tricks, your team scores +100 bonus points. If you take even one trick, your team loses 100 points. In either case, your partner's bid and tricks are scored normally. A Blind Nil is declared before you see your hand — a much riskier commitment that rewards you with +200 points for success or penalizes you with -200 for failure. In competitive play, Blind Nil is reserved for desperate situations where your team is far behind and needs a dramatic swing. Both bids are scored independently from the team contract, so a successful nil can turn a set round into a profitable one.
When can I lead spades?
Spades cannot be led until they are broken, which happens when any player plays a spade on a trick where a different suit was led (usually because they had no cards in that suit). Once spades are broken, any player may lead spades on any subsequent trick. The one exception is if you have only spades left in your hand — in that case you may lead a spade even if they have not been broken yet, since you have no other option. The spades-broken indicator at the top of the game board shows the current status. Strategic players sometimes deliberately withhold spades for many tricks to delay breaking them, preserving their trump cards for critical moments.
How do I protect my partner's Nil bid?
Protecting a partner's nil bid is one of the most exciting and challenging aspects of Spades. When your partner bids nil, your job during play is to prevent them from winning any tricks. The most effective strategies are: lead suits where you suspect your partner has high cards (so you can win the trick if they play high), win any trick where your partner plays a high card by playing an even higher one, and avoid leading suits where your partner might be void (since they could accidentally trump with a spade). If you hold high cards in a suit your partner has, try to play those cards early to make the suit safe for them later. The medium and hard AI in this game will actively try to protect its own nil bid partner.
What is a Boston?
A Boston is the remarkable feat of winning all 13 tricks in a single round. It is extremely rare and requires an exceptionally strong hand combined with fortunate card distribution. In standard Spades scoring, a Boston yields the maximum possible bid score (13 tricks × 10 points = 130 points) with no overtricks if the team bid 13. Some house rules award extra bonus points for a Boston — typically 200 extra — but this implementation uses standard scoring where the achievement is noted as a milestone but does not grant extra points beyond what the bid would normally earn. Seeing the Boston notification is its own reward.
How does the AI difficulty affect gameplay?
Easy AI counts high cards naively for bidding and plays any legal card at random. It makes frequent bidding errors and misses obvious defensive plays. Medium AI evaluates its hand more carefully, tracks which suits have been played, covers partner nil bids most of the time, and avoids obvious bag-generating plays. Hard AI performs full card tracking — it remembers every card played this round, calculates exact probabilities of winning tricks, actively protects nil bids by leading specific suits, and makes optimal bag avoidance decisions when ahead. Hard AI will feel like a genuine challenge and will rarely overbid or make easily preventable mistakes. For newcomers to Spades, Easy or Medium difficulty is recommended until you are comfortable with bidding and trick play.