Problem 2868 · Medium

The Wording Game

Memoize who wins from each last word: a player wins by finding a legal reply that leaves the opponent with no winning answer.

Open the interactive visualisation