Stone Game II: Alice vs Bob

Current M: 1

Maximum Piles (X): 2

Alice

Score: 0

Bob

Score: 0

Game Log

    Game Rules and Explanation

    This is a two-player game between Alice and Bob. Alice always starts first. The game begins with M = 1. On each player’s turn, they can take stones from the first X piles, where 1 <= X <= 2M. After a move, M is updated to the maximum of its current value and X.

    The objective is to collect the most stones. The game ends when all piles are taken, and the player with the highest score wins.