Construction of ASEAN Chess Endgame Tablebases: A Computational Analysis of King-Knight-Queen and King-Bishop-Queen Patterns Against a Lone King
Keywords:
ASEAN Chess, Endgame Tablebases, Retrograde Analysis, Piece Counting Rules, Computational Game AnalysisAbstract
Background and Objectives: ASEAN Chess, is a traditional strategic board game that differs substantially from International Chess in terms of piece movement, endgame dynamics, and regulatory constraints. One of its most distinctive features is the official piece-counting rule, which limits the number of moves allowed to force a checkmate when one side is reduced to a lone King. This rule has a significant impact on endgame outcomes, often determining whether a theoretically winning position results in a practical draw. Despite its widespread practice at both national and international competitive levels, ASEAN Chess remains significantly underexplored from computational and game-theoretic perspectives, particularly with respect to complex endgame scenarios involving multiple attacking pieces. Existing studies and practical knowledge rely heavily on human intuition and empirical experience, which are insufficient to fully capture the exhaustive state space of such endgames. The objective of this research is to develop Endgame Tablebases (EGTBs) for ASEAN Chess and to conduct a comprehensive computational analysis of two complex endgame configurations: King-Knight-Queen versus King (K-N-Q vs. K) and King-Bishop-Queen versus King (K-B-Q vs. K). The study aims to determine, under optimal play, the exact distribution of forced wins and draws, to identify the maximum Distance to Mate (DTM), and to evaluate the practical impact of the official piece-counting rules on theoretical endgame outcomes.
Methodology: This research employs a computational framework based on retrograde analysis to exhaustively evaluate all legal endgame positions for the selected configurations. The process begins by generating all legally reachable board states in accordance with the official rules of ASEAN Chess. To manage the large state space, symmetry-based reduction techniques are applied, allowing equivalent board positions to be grouped and analyzed efficiently. Terminal checkmate positions are initialized as Distance to Mate (DTM) zero. The algorithm then iteratively propagates results backward through the game tree, assigning game-theoretic values to each position by considering all possible legal moves for both the attacking and defending sides. Positions are classified as forced wins, draws, or losses under the assumption of perfect play, with the attacking side always moving first. The resulting EGTBs record not only the outcome of each position but also the maximum number of moves required to force a checkmate. In addition, the official ASEAN Chess piece-counting rules are incorporated into the analysis, with particular attention given to the regulation limiting the Bishop’s pursuit to a maximum of 44 moves. This allows a direct comparison between theoretical outcomes and regulation-constrained practical results.
Main Results: The computational analysis reveals that the K-N-Q configuration comprises a total of 11,930,016 legal positions. Of these, only 472,900 positions (3.96%) result in forced wins for the attacking side, while the remaining 96.04% are theoretical draws, indicating strong defensive resilience against a lone King. The deepest winning positions in this configuration require up to 36 moves to achieve checkmate. In contrast, the K-B-Q configuration encompasses 12,170,304 legal positions. Among these, 10,438,976 positions (85.77%) are identified as forced wins, while 14.23% result in draws. The maximum Distance to Mate in this configuration reaches 57 moves, demonstrating that although the position is highly favorable for the attacker, precise and extended maneuvering is often required. When the official 44-move piece-counting rule for the Bishop is applied, 278,040 theoretically winning positions exceed the permitted move limit. As a result, the effective winning probability is reduced to 85.39%, with these positions converted into practical draws due solely to regulatory constraints.
Conclusions: This study provides the first exhaustive Endgame Tablebases for complex ASEAN Chess endgames involving Knight-Queen and Bishop-Queen configurations. The results confirm a substantial disparity in piece potency, with the Bishop-Queen combination exhibiting significantly greater offensive effectiveness than the Knight-Queen combination. Furthermore, the findings demonstrate that official counting rules play a decisive role in shaping practical outcomes, creating a measurable divergence between theoretical optimal play and regulation-constrained competition.
Practical Application: The developed EGTBs establish a rigorous foundation for multiple practical applications. They can be integrated into high-performance ASEAN Chess engines to improve endgame accuracy, utilized as authoritative references for training and instructional systems, and incorporated into digital or mobile learning platforms to enhance players’ understanding of optimal endgame play and counting rules. Additionally, the results provide valuable insights for tournament organizers and rule designers by quantifying the practical effects of regulatory constraints. More broadly, this research contributes to computational game analysis and supports future studies of more complex ASEAN Chess endgames involving additional pieces.
References
Huntington, G. and Haworth, G.M. 2015. Depth to mate and the 50-move rule. ICGA Journal, 38, 93-98.
ASEAN-Chess Council, The Official Rules of ASEAN Chess, 2011 [Online]. Available: http://www.aseanchess.org. [9 December 2025]
Janko, V. and Guid, M. 2015. Development of a program for playing progressive chess. Advances in Computer Games (ACG 2015), Lecture Notes in Computer Science, 9525, 122-134.
Janko, V. and Guid, M. 2016. A program for progressive chess. Theoretical Computer Science, 644, 76-91.
Silver, D., Hubert, T., Schrittwieser, J., Antonoglou, I., Lai, M., Guez, A., Lanctot, M., Sifre, L., Kumaran, D., Graepel, T., Lillicrap, T., Simonyan, K. and Hassabis, D. 2018. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362, 1140-1144.
Fang, H., Hsu, T. and Hsu, S. 2001. Construction of Chinese chess endgame databases by retrograde analysis (pp. 107-122), in T. Marsland and I. Frank (Eds.) Computers and Games (CG 2000), Lecture Notes in Computer Science, Vol. 2063, Springer, Berlin. https://doi.org/10.1007/3-540-45579-5_7
Schaeffer, J., Björnsson, Y., Burch, N., Lake, R., Lu, P. and Sutphen, S. 2003. Building the checkers 10-piece endgame databases (pp. 193-210), in H.J. Van Den Herik, H. Lida and E.A. Heinz (Eds.) Advances in Computer Games. IFIP — The International Federation for Information Processing, Vol. 135, Springer, Boston. https://doi.org/10.1007/978-0-387-35706-5_13
Thompson, K. 1986. Retrograde analysis of chess endgames. ICGA Journal, 9, 131-139.
Haworth, G.M. 2000. Space-efficient indexing of chess endgame tables. ICGA Journal, 23, pp. 148-162.
Haworth, G.M. 2003. Chess endgame tablebases. ICGA Journal, 26, 244-248.
Haworth, G.M. 2009. Chess endgame update. ICCA Journal, 32, 228.
Haworth, G.M. 2019. Chess endgame news: 7-man ‘Syzygy’ DTZ 50 EGTs. ICGA Journal, 40, 1-2.
Campbell, M., Hoane, A.J. and Hsu, F.H. 2002. Deep blue. Artificial Intelligence, 134, 57-83.
Anthony, T., Tian, Z. and Barber, D. 2017. Thinking fast and slow with deep learning and tree search. Proceedings of the 31st International Conference on Neural Information Processing Systems, California, USA, 5366-5376.
Tudsuan, T. and Jearanaitanakij, K. 2021. Heuristic method for tablebases: A Case Study of Thai chess endgame in King-Knight-Queen-King pattern. Ladkrabang Engineering Journal, 38, 17-30.
Breda, G. 2006. KRK chess endgame database knowledge extraction and compression, Master of Science Thesis, Faculty of Computer Science, Technische Universität Darmstadt.
Guid, M., Možina, M., Sadikov, A. and Bratko, I. 2010. Deriving concepts and strategies from chess tablebases (pp. 195-207), in H.J. van den Herik and P. Spronck (Eds.) Advances in Computer Games (ACG 2009), Lecture Notes in Computer Science, Vol. 6048, Springer, Berlin.
Haque, R., Wei, T.H. and Müller, M. 2021. On the road to perfection? Evaluating Leela Chess Zero against endgame tablebases (pp. 142-152), in C. Browne, A. Kishimoto and J. Schaeffer (Eds.) Advances in Computer Games (ACG 2021), Lecture Notes in Computer Science, Vol. 13262, Springer, Cham.
Van Rijn, J.N. and Vis, K. 2014. Endgame analysis of Dou Shou Qi. ICCA Journal, 37, 120-124.
Pham, N.H. 2025. Chinese chess EGTB with perpetual check-chase rules, in M. Hartisch, C.H. Hsueh and J. Schaeffer (Eds.) Computers and Games (CG 2024), Lecture Notes in Computer Science, Vol. 15550, Springer, Cham. https://doi.org/10.1007/978-3-031-86585-5_3
Heinz, E.A. 1999. Endgame databases and efficient index schemes for chess. ICCA Journal, 22, 22-32.
Nalimov, E.V., Wirth, C. and Heinz, E.A. 2000. On the construction and use of chess endgame databases. ICGA Journal, 23, 71-87.
Haworth, G.M. 2015. Chess endgame news. ICGA Journal, 38, 41-46.
Haworth, G.M. 2017. Chess endgame news. ICCA Journal, 39, 172.
Guo, B. 2018. Construction of 7-piece endgame tablebases [Online]. Available: https://github.com/syzygy1/tb. [15 December 2025]
Bellman, R. and Kalaba, R. 1965. Quasilinearization and nonlinear boundary-value problems. American Elsevier Publishing, New York.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 King Mongkut's University of Technology Thonburi

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Any form of contents contained in an article published in Science and Engineering Connect, including text, equations, formula, tables, figures and other forms of illustrations are copyrights of King Mongkut's University of Technology Thonburi. Reproduction of these contents in any format for commercial purpose requires a prior written consent of the Editor of the Journal.


