A Winning Strategy for the Chocolate Bar Game

Suppose player A goes first and follows the policy that A will always leave player B with a square bar: