evaluateHandCategory
Category label only (highCard … royalFlush) for hole cards + board.
evaluateHandCategory(holeCards: CardInput, board: CardInput): string
CardInput is string[] or Uint8Array of deck ids 0..51. Returns a category label string (highCard … royalFlush), not encoded strength.
Import
const poker = require('poker-calculations');
When to use
Use for UI labels, study charts, or filters when you do not need full kicker detail from evaluateBestHand.
How to use
const category = poker.evaluateHandCategory(['Ah', 'Kh'], ['Qh', 'Jh', 'Th']);
console.log(category); // e.g. straight
Labels match handRankCategoryOrder.