Mastering Baghchal by Self-Play with Deep Reinforcement Learning
This paper presents a systematic evaluation of four deep reinforcement learning algorithms (DQN, REINFORCE, PPO, and MuZero) for mastering the asymmetric Nepali board game Baghchal through self-play, revealing that MuZero achieves the highest win rates via model-based planning while PPO offers the most practical balance of performance and computational efficiency.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
For decades, the field of artificial intelligence has been obsessed with games, using them as a proving ground to teach machines how to think. The goal is not merely to win at chess or Go, but to understand how an agent can learn complex strategies from scratch, without being told the rules by a human teacher. This process, known as reinforcement learning, works like a digital form of trial and error. An agent plays a game, receives a reward for a good move or a penalty for a bad one, and slowly adjusts its internal logic to maximize future rewards. While this approach has mastered symmetric games where both players have identical pieces and goals, it faces a much steeper climb when the players are fundamentally different. In these asymmetric scenarios, one side might have a few powerful units while the other commands a large, slower army, creating a puzzle where the path to victory looks completely different for each player. Understanding how machines navigate these uneven playing fields is crucial, not just for better game bots, but for developing artificial intelligence that can handle the messy, unequal realities of the real world.
In a recent study, researchers from Kathmandu University in Nepal turned their attention to Baghchal, a traditional board game from their own culture that perfectly embodies this asymmetry. Played on a five-by-five grid, the game pits four agile tigers against twenty goats. The tigers move first and can jump over goats to capture them, aiming to remove five goats from the board to win. The goats, who are placed on the board one by one in the opening phase, must work together to surround the tigers and cut off all their movement. If the goats succeed in trapping the tigers so they cannot move, the goats win. The game is played with perfect information, meaning both sides see the entire board at all times, yet the challenge lies in the vastly different roles: the tigers need aggressive, short-term tactics to hunt, while the goats require long-term, coordinated planning to build a defensive wall. Despite its strategic depth, Baghchal had received little attention from modern artificial intelligence researchers, who had largely focused on Western or East Asian games.
To explore how machines handle this unique challenge, the team trained four different types of learning algorithms to play both sides of the game against themselves. They did not program the agents with specific strategies; instead, they let the algorithms play thousands of games against copies of themselves, learning from the outcomes. The researchers tested a variety of learning styles: one that learned by memorizing the value of specific board positions, another that learned by guessing and checking entire game sequences, a third that balanced learning with stability, and a fourth that built an internal model of the game to imagine future moves. By having each algorithm play both the tiger and the goat, the researchers could see if a single learning method could adapt to two completely different ways of thinking, or if it would struggle to master one role while failing at the other.
The results revealed a clear hierarchy in how well these machines learned to play. The most successful algorithm was the one that built an internal model of the game, allowing it to simulate future scenarios before making a move. This approach, known as model-based planning, enabled the agent to think several steps ahead, a crucial skill for the goats who must plan their encirclement carefully. In the simulations, this advanced agent won 86 percent of the games when playing as the tiger and 62 percent when playing as the goat. It learned to make sacrifices, such as letting a goat escape temporarily to set up a better trap later, and it excelled at the long-term coordination required to stop the tigers. The researchers found that this ability to plan ahead was the single biggest factor in winning, as it allowed the agent to see the consequences of its actions far into the future.
However, the study also highlighted a practical trade-off. While the model-based agent was the strongest player, it was also the most demanding, requiring significantly more computer power and time to train. It took nearly twenty-five hours of continuous processing to reach its peak performance, and it was slower to make decisions during a game. In contrast, another algorithm, which learned by balancing exploration with stability, offered a compelling middle ground. It achieved strong win rates for both sides—73 percent as the tiger and 58 percent as the goat—but did so with much less computational effort and in less than half the training time. This suggests that for many real-world applications where resources are limited, a slightly less powerful but much more efficient system might be the better choice.
The researchers also uncovered how the nature of the game itself shaped the learning process. The tiger role proved easier for all the algorithms to master because the rewards were immediate and clear: capturing a goat gave an instant boost. This made the learning process stable and fast. The goat role, however, was much harder. The goats receive rewards only when they successfully trap the tigers, which can happen many moves after the initial setup. This delay made it difficult for the algorithms to figure out which early moves were helpful and which were not. Consequently, the algorithms that relied on immediate feedback struggled more with the goats, often failing to coordinate the twenty pieces into a cohesive defense. The study showed that while machines can learn to play asymmetric games, the difficulty of the role depends heavily on how quickly the game provides feedback on success.
Ultimately, this work demonstrates that modern artificial intelligence can learn to navigate complex, uneven playing fields without human instruction. The study confirms that the ability to plan ahead is the key to mastering games like Baghchal, where the path to victory requires thinking beyond the immediate next move. While the most powerful systems require significant computing resources, the findings suggest that efficient algorithms can still achieve high levels of skill, making advanced game-playing technology accessible even in environments with limited hardware. By applying these methods to a traditional Nepali game, the researchers not only advanced the science of artificial intelligence but also helped preserve a cultural heritage, proving that ancient strategies can teach modern machines valuable lessons about cooperation, strategy, and the art of thinking ahead.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.