This is a simple implementation of the Swiss Jass card game (aka Chibre or Schieber) in TypeScript, with Vite as a Node.js framework. The code repository is hosted on GitHub and published on GitHub Pages.
The game is made of a UI so that a human can play against 3 AI bots.
💥 You can play the game online in your browser: https://www.micaelpaquier.com/jass-game
Please note that the UI is a bit responsive, but not fully optimized for mobile devices.
You may also play locally by cloning the repository and running the following commands:
npm install
npm run dev
Then open your browser at http://localhost:5173/
Note: Node.js must be installed on your machine.
If you don't know the game yet, you can find the rules here.
Note that some rules might not have been implemented yet.
- The cards images are from the American Contract Bridge League resource center.
- The green baize background image is from rawpixel.com on FreePik.
I would...
- Refactor for a cleaner code architecture.
- Improve code encapsulation and modularity.
- Add more tests (including UI tests).
- Implement more rules (e.g. "Marriage" meld)
- Implement more/better AI strategies.