Build real-time betting and casino game platforms with PubNub
Does it follow best practices?
Evaluation — 93%
↑ 1.52xAgent success when using this tile
Validation for skill structure
An online casino operator wants to build a multiplayer blackjack experience where up to 7 players can sit at a virtual table and play against the dealer in real time. Each table runs independently, and the platform needs to support dozens of concurrent tables. Players see card deals, other players' actions, and settlement results instantly.
The game follows standard blackjack rules: players place bets, receive two cards, choose to hit, stand, or double down, and then the dealer plays. The game progresses through distinct phases (betting, dealing, player turns, dealer turn, settlement), and every connected client must see a consistent view of the table state at all times.
The casino operator wants the entire game flow built on PubNub, with the game logic running server-side so that players cannot manipulate outcomes. They also want a multi-table poker tournament structure where players are assigned to tables, compete, and see a live leaderboard of chip standings.
Produce the following files:
blackjack-server.js -- Server-side game engine that:
blackjack-client.js -- Client-side module that:
tournament-manager.js -- A module that: