The Witcher/Dice poker

Dice poker is a minigame within the Witcher, where players roll five six-sided dice

This game is technically more difficult for the player, as the AI player has one chance to make its decision based on the Geralt's second hand, rather than being a simultaneous roll. There is also claims of luck manipulation, but both of these are not a setback to those that save and reload the game.

The rules are as follows:
 * An initial bet is made.
 * Both players roll dice.
 * After the initial roll, Gerald may check or raise the bet. In response, the AI player will check or raise.
 * Gerald picks which dice are re-rolled, and rolls them.
 * The opponent picks which dice are re-rolled (knowing Gerald's new result), and rolls them as well.
 * The hands are ranked, with the winner having the strongest hand (ranked from best to worst):
 * Five of a kind
 * Four of a kind
 * Full House (a three-of-a-kind and a two-of-a-kind)
 * Straight (five consecutive numbers)
 * Three of a kind
 * Two pairs
 * Pair
 * Nothing
 * If both players have the same hand, the one with the highest dice wins. Ranking is based on the largest match first (e.g. a full house would compare the triplets first), followed by smaller groups, then any extra dice. If it is still a draw, there's no winner for this round, resulting in an extra round.
 * The game is played until there's a number of wins. The winner collects the pot once all rounds are complete.

There is a quest related to dice poker, based on the quality of the opponents you played against. Only the named opponents progress this quest, the generic gamblers do not.

Rerolling
In a fair game of Dice poker, you can use the table below. Look up your hand on the left column. To the right are columns representing the required hand (i.e. if you need 2-pair to win, you look in the 2-pair column). The numbers replaced by an "X" are the ones to be rerolled, other numbers are kept. There may be a luck factor that adjusts the roll, which isn't obvious upfront.

In most cases, the reroll is the same for each column, but there's some subtle differences depending on the situation. For example, 13456 has a different optimal roll choice depending on whether you need a pair, two pair, straight, or four-of-a-kind.