Menu

How I built a "chess-engine" style AI for a 6-dice strategy game natively on my Pixel 9 Pro
📰

How I built a "chess-engine" style AI for a 6-dice strategy game natively on my Pixel 9 Pro

DEV Community: mobile·Russell Munn·about 10 hours ago
#Hc5lyAWC
#devtomobile#devto#dev#dice#game
Reading 0:00
15s threshold

​I just moved a solo project out of closed testing into production, and the engineering constraints almost broke me.

​The app is Maxi Yatzy Master, a digital version of the Scandinavian 6-dice variant of Yahtzee. The core game is completely free to play, but building a worthy AI opponent for it required solving a massive compute bottleneck.

​The Math Problem

Standard 5-dice Yahtzee is largely luck-based, but the 6-dice variant allows players to bank unused rolls for later turns. This single mechanic creates incredibly complex diverging paths across different game states. Most mobile dice games use rigid logic trees or simply cheat the dice to simulate difficulty.

​Calculating the true optimal move required serious compute. To solve this, I built the game logic and probability statistics using a codebase architecture similar to advanced chess simulators.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.