You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following hand should return the board as the combination. However, the pocket cards are included in the highestCombination. Is this a bug or am I using it incorrectly?
const pack = new Pack()
const holeCards = new Hand([
pack.createCard('clubs', 2),
pack.createCard('clubs', 3)
])
const board = new Hand([
pack.createCard('spades', 4),
pack.createCard('hearts', 5),
pack.createCard('clubs', 10),
pack.createCard('diamonds', 'jack'),
pack.createCard('spades', 'queen')
])
const col = HandsCollection.createCombinations(board, holeCards).highestCombination
console.log(col._hand.cards)
The following hand should return the board as the combination. However, the pocket cards are included in the highestCombination. Is this a bug or am I using it incorrectly?
const pack = new Pack()
const holeCards = new Hand([
pack.createCard('clubs', 2),
pack.createCard('clubs', 3)
])
const board = new Hand([
pack.createCard('spades', 4),
pack.createCard('hearts', 5),
pack.createCard('clubs', 10),
pack.createCard('diamonds', 'jack'),
pack.createCard('spades', 'queen')
])
const col = HandsCollection.createCombinations(board, holeCards).highestCombination
console.log(col._hand.cards)
prints out
[ Card { suit: 20, rank: 0 }, Card { suit: 20, rank: 1 }, Card { suit: 20, rank: 8 }, Card { suit: 21, rank: 9 }, Card { suit: 23, rank: 10 } ]
which is incorrect as the pocket cards 2 and 3 is smaller than the community cards 4 and 5.
The text was updated successfully, but these errors were encountered: