Rule explained
Walk-off
In one line
In the home team's last half-inning, the game ends as soon as the winning run scores, as long as it scores before the third out.
A run scores on a double play that isn't the third out, so turning two with the winning run on 3rd and none out doesn't help.
On a walk-off hit, the batter is credited with only as many bases as the winning runner needed, unless it's a home run out of the park.
Game length varies: Little League games are 6 innings. Some tiebreakers start extra innings with a runner on 2nd.
Quick answers
Does the game end if the winning run scores on a double play?
Yes, if the double play doesn't make the third out.
Situations this rule decides
Plain-English summary. Check the Official Baseball Rules and your league's rules for the exact wording.