mruby7188 / Liars_Dice_Agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liars Dice Game

This is a game of Liars Dice, which can be played with up to 12 players. This version currently supports 1 user player, with the remaining players filled by computer players that will act with of mix of randomness and probabilistic reasoning.

Theory

The GameAgent (in progress) with m dice and a bet of k of dice d and n total dice remaining, will make bet/call decisions based on

Letting , where a is the number of dice, d, in the hand of the players whose turn it is.

If k - a <= 0; we know that the bet is true so the agent will never call that bet, similarly if k -a > n - m, the agent should always call since this is impossible. Otherwise we define the probability of the bet being true as:

Letting

Further, we estimate the probability that a player is lying or will call our bluff by:

About


Languages

Language:Python 100.0%