phe.js
function evaluateBoard(board) {
  if (typeof board !== 'string') throw new Error('board needs to be a string')
  const cards = board.trim().split(/ /)
  return evaluateCardsFast(cards)
}
function evaluateBoard(board) {
  if (typeof board !== 'string') throw new Error('board needs to be a string')
  const cards = board.trim().split(/ /)
  return evaluateCardsFast(cards)
}
function evaluateBoard ( board ) { if ( typeof board !== 'string' ) throw new Error ( 'board needs to be a string' ) const cards = board . trim ( ) . split ( / / ) return evaluateCardsFast ( cards ) }
Evaluates the given board of 5 to 7 cards provided as part of the board to
arrive at a number representing the hand strength, smaller is better.

@name evaluateBoard
@function
@param {String} board the board, i.e. `'Ah Ks Td 3c Ad'`
@return {Number} the strength of the hand comprised by the cards of the board
Evaluates the given board of 5 to 7 cards provided as part of the board to arrive at a number representing the hand strength smaller is better .