Problem 1406 · Hard

Stone Game III

Decide the winner when each turn removes one to three stones from the front of a row and both players play their best. The visual shows a table of best score differences from each starting index.

Open the interactive visualisation