5 minutes
The bus already tracks stacks, antes, and a pot. But the chips just pile up, and nothing decides who wins them. When betting ends, no code knows that a flush beats two pair. Nothing can break a tie between two players holding the same straight. The game moves money around, but no part of it picks a winner.
PokerHandEval is the part that picks the winner. It takes seven card ids and ranks the hands. It works with data only. It never touches the DOM or the 3D scene. It is fully deterministic, so the same cards always score the same way.

Add PokerHandEval to the Table entity
Add PokerHandEval to the existing Table entity. It already holds PokerBetting from Lesson 2:
emitResults: true makes the resolved event carry more detail. It sends the full per-seat result map, with hand names and descriptions. Without it, you only get the winner list.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.