12cards

12 Cards is an online game (amusement only) where players can bet Game Points (GP) on any of the 12 available cards. Every 2 minutes, a roulette is spun, revealing a multiplier and the drawn card. If the player's predicted card is drawn, the player wins GP Bet * Multiplier * 10 GP. This is easily one of the best projects I have built till date.

12cards

This project inherits from the OnRoad - Project so much of the features are quite the same, listing a few features unique to this project.

⏰ Realtime APIs

The game utilises web-sockets (WSS) to keep various part of the game in sync with each other without needed for the user to refresh the page eg. Roulette, Round History etc.

🧑‍💻 In-house Algorithm

The game utilises a well-tested, configurable algorithm that ensures users have an enjoyable experience while still protecting the house from any point losses.

🍀 Custom Three Layer Roulette

The core of this project is a custom 3-wheel lucky spinner that determines the outcome of a placed bet. The first wheel displays the card rank (K, Q, J), the second wheel shows the symbol (Heart, Diamond, Spade, Club), and the third wheel indicates the bonus multiplier (1-10X). All three wheels spin in alternating directions, creating a visual effect that resembles a shuffle.

🖨️ Printer Integration via Web USB

The project supports printing winning receipts via WebUSB API, allowing the printer to connect directly from the web interface. This feature is optional and can be enabled by the user.

💻 Demo Video

Try the game for yourself.

  1. Checkout - 12Cards Staging

  2. Login with credentials - demo | 12cdemo1234

The source code for this project is private due to the proprietary algorithm used in the game, also note that this project does not involve real money in any way; it is purely for entertainment and to foster creativity.