Skip to main content

evaluateHandCategory

Category label only (highCardroyalFlush) 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 (highCardroyalFlush), 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.

See also

Hand rank labels