About

Online Hearts is a fast browser-based version of the classic trick-avoidance card game. The project is designed around a straightforward goal: make the rules explicit, keep the interface readable, and let players get into a hand immediately.

What is included in this version

  • Standard 4-player Hearts with three AI opponents.
  • Rotating passing directions: left, right, across, then no pass.
  • First-trick restrictions and hearts-broken handling.
  • Moon-shot scoring and shared-winner support when totals tie.

Why the rules layer matters

Hearts has a few deceptively sharp rules. The table only feels fair when openings, passing, following suit, first-trick dumps, and moon scoring all behave consistently. That is why the game logic lives in a tested TypeScript engine rather than inside ad hoc click handlers.