I wanted to play Hearts with three friends without the need to make an account, install an app, or get paired with strangers/robots. So I made this.

<img alt=”Screenshot choosing cards to trade” src=”https://i.imgur.com/tYsfzyn.png” width=400> <img alt=”Screenshot playing a trick” src=”https://i.imgur.com/Fw3JqJh.png)” width=400>

Things it does

Please file an issue (or PR) if there is something else you want Hearts to do.

Things it does not do (yet)

Tech used

The app is (more-or-less) a single-page application served via a Node Express app. The game state is handled by a Vue component, and game updates are streamed between players via Socket.io.

Special thanks to the Deck of Cards API for the wonderful API methods & card images.

Running locally

Make sure you have Node installed. Then,

  1. Clone the repository
  2. From inside the folder, run npm install
  3. Run npm start, and you may access Hearts locally at localhost:9090

Do whatever you want with it

Clone it. Fork it. Twist it. Bop it.