Optimal Strategy of the Simultaneous Dice Game Pig for Multiplayers: When Reinforcement Learning Meets Game Theory

Tian Zhu, Merry Ma, Lu Chen, Zhenhua Liu

Abstract

A milestone was set in modern machine learning history when AlphaGo Zero, based on reinforcement learning and with no training data from human players, became the undefeated Go champion against all machines and humans. Currently, Deepmind is building its next generation of protein folding prediction AI expected to surpass the famed AlphaFold that has already surpassed all human scientists, using the same mechanism of Zero, namely, reinforcement learning. In this work, we focus on using reinforcement learning and game theory to solve for the optimal strategies for the dice game Pig, in a novel simultaneous playing setting. First, we derived analytically the optimal strategy for the 2-player simultaneous game using dynamic programming, mixed-strategy Nash equilibrium. At the same time, we proposed a new Stackelberg value iteration framework to approximate the near-optimal pure strategy. Next, we developed the corresponding optimal strategy for the multiplayer independent strategy game numerically. Finally, we presented the Nash equilibrium for simultaneous Pig game with infinite number of players. To help promote the learning of and interest in reinforcement learning, game theory and statistics, we have further implemented a website where users can play both the sequential and simultaneous Pig game against the optimal strategies derived in this work.

Introduction

The game of Pig is a classic "jeopardy" dice game where players roll to accumulate points but risk losing their turn's total if they roll a 1. While traditionally played sequentially, this format suffers from two primary issues: a significant first-mover advantage and reduced engagement in multiplayer settings due to wait times. To address these, this research introduces Simultaneous Pig, where all players act concurrently. This shift transforms the game into a hidden-information environment, requiring a game-theoretic approach to determine whether to "roll" or "hold" without knowing the opponent's current turn progress.

Methodology

The authors modeled Simultaneous Pig as a Markov Decision Process (MDP). For a 2-player game, the state space is defined by a $100 \times 100$ matrix of scores. To solve this, several computational techniques were employed:

  1. Value Iteration & Dynamic Programming: Used to calculate state-value functions.
  2. Mixed-Strategy Nash Equilibrium: Since a stable "pure" strategy (a fixed action for every state) does not exist in the simultaneous version, the authors derived a mixed strategy where players alternate between cyclic policies to maintain stability.
  3. Stackelberg Value Iteration for Multi-Agent (SVIMA): A novel framework that treats the interaction as a leader-follower model to find a stable point where neither player wants to deviate.
3D visualization of the optimal turn total strategy (k) based on the scores of Player A and Opponent B.

The complexity of the strategy is visualized in the 3D plot above, which shows how the target turn total ($k$) fluctuates based on the relative scores of the players.

Key Insights and Results

The research yielded several critical observations regarding optimal play:

  • The Aggression Shift: As an opponent nears the winning score of 100, the optimal strategy dictates a shift toward higher risk. Safe play becomes a liability when the opponent is on the verge of victory.
  • The "Hold at 25" Sweet Spot: Analysis revealed that holding at $n=25$ represents a local minimum for winning probability when facing an optimal opponent. This corresponds to strategies aimed at winning the game in a specific number of turns (e.g., 4 turns for 100 points).
Winning probability of the optimal strategy when playing against an opponent using a fixed "Hold at n" strategy.
  • The Infinite Player Paradox: In a game with an infinite number of players, the probability of winning with standard play approaches zero. The only rational Nash Equilibrium in this limit is to "hold at 100"—essentially attempting to win the entire game in a single turn.
  • Performance: In a 2-player game, the optimal strategy achieves a 52.31% winning probability against a standard "hold at 25" opponent.

Conclusion and Future Work

This work demonstrates the power of combining RL and Game Theory to solve complex, simultaneous-action games. While the $O(100^n)$ complexity limits traditional DP for many players, the authors suggest that Deep Reinforcement Learning (e.g., DQN or self-play mechanisms like AlphaGo Zero) could handle larger state spaces. Future research may also explore cooperative dynamics and collusion in multiplayer Pig.

Summary updated

BibTeX
@inproceedings{zhu2023optimal,
  author = {Tian Zhu and Merry Ma and Lu Chen and Zhenhua Liu},
  title = {{Optimal Strategy of the Simultaneous Dice Game Pig for Multiplayers: When Reinforcement Learning Meets Game Theory}},
  booktitle = {Scientific},
  year = {2023},
  doi = {10.1038/s41598-023-35237-x},
}
Figure