High-Precision Estimation of the State-Space Complexity of Shogi via the Monte Carlo Method

arXiv:2604.06189 · cs.AI, cs.GT · Submitted 2026-02-24 · Read on arXiv

cs.AI, cs.GT

Submitted: 2026-02-24

Updated: 2026-10-03

Comments: Preprint submitted to IPSJ Journal of Information Processing

Code: https://github.com/u-tokyo-gps-tanaka-lab/minishogi-position-ranking

License: http://creativecommons.org/licenses/by-nc-nd/4.0/

The gist: Determining the state-space complexity of Shogi (Japanese Chess) has been a challenging problem, with previous combinatorial estimates leaving a gap of five orders of magnitude (10 64 to 10 69).

Abstract

Determining the state-space complexity of Shogi (Japanese Chess) has been a challenging problem, with previous combinatorial estimates leaving a gap of five orders of magnitude (10 64 to 10 69). This gap arises from the difficulty of distinguishing positions reachable from the initial position among the vast number of board configurations. In this paper, we present a high-precision statistical estimate of the number of reachable Shogi positions. Here, a position consists of the side to move, the board configuration, and the pieces in hand, without move history, and positions related by exchanging the two players or by horizontal reflection of the board are counted once. Our method combines Monte Carlo sampling with a reachability test that performs reverse search toward the set of ``King-King only'' (KK) positions rather than toward the single initial position. Since every KK position and the initial position are mutually reachable, reaching any KK position proves reachability, and removing pieces from the board is a much simpler objective than reconstructing the initial position. Based on a sample of five billion positions, we estimate the number of such positions in Shogi to be 6.55 times 10 68; both ends of the approximate 3σ confidence interval round to this value at three significant digits. We also applied this method to Mini Shogi, obtaining approximately 2.38 times 10 18.

Related papers