Next Game: at Washington 5/22/2016 | 1:00 PM

SEATTLE – Junior Alex Dunlap had a career-high five hits, which included the game-winning home run in the 12th inning, to lead Stanford baseball to an 8-7 road win over No. 17 Washington on Saturday afternoon at Husky Ballpark.

Sophomore Quinn Brodey had two go-ahead hits, the game-tying two-run triple in the ninth, finished a single shy of the cycle and racked up a career-high five RBI, while Dunlap was 5-for-6 for the Cardinal. Junior Tyler Thorne (3-2) pitched the final 6.2 innings and held the Huskies scoreless over his last four innings to earn the win.

Stanford held leads of 2-0, 3-2 and 5-3, but the Huskies came back each time and took a 7-5 lead into the eighth.

Sophomore Matt Winaker led off the ninth with a single for the Cardinal, and Nico Hoerner walked. Tommy Edman grounded into a fielder's choice to put runners at the corners for Brodey, who smacked a line drive down the right field line. Edman scored the tying run all the way from first.

In the home half of the ninth, defensive replacement Jonny Locher made a game-saving catch to send the game into extra innings. With two on, Locher ran down and hauled in a deep fly ball just as he collided with the wall in right field at full speed.

A few innings later, Dunlap won it with a one-out solo shot over the scoreboard. For the second straight day, the Cardinal hit three solo home runs as the scoring also started in that fashion for Stanford.

As he did in the series opener, sophomore Mikey Diekroeger got the Cardinal offense going with a home run. He crushed the first pitch he saw over the wall in left center and Stanford led 1-0 in the second.

Stanford (28-22, 12-14 Pac-12) added to the lead in the top of the fourth. Dunlap singled up the middle and then scored when senior Austin Barr ripped a two-out double down the left field line for a 2-0 lead.

Junior starter Chris Castellanos was on cruise control and handled the Huskies through four innings. He was one out away from a scoreless fifth, but Levi Jordan lifted one over the left field wall for a game-tying, two-run homer.

In the sixth inning, the first batter for the Cardinal, Brodey, blasted one off the batters eye in center field to put Stanford back on top. But in the bottom of the inning, the first batter for the Huskies, Kyle London, tied it back up, 3-3, with a round-tripper to left.

Later in the home half of the sixth, Thorne entered with one out and two runners in scoring position. He needed just two pitches to retire two hitters and strand both runners to keep the game tied.

That set up Brodey's second go-ahead hit in as many innings. Hoerner singled with two outs, and Edman walked. Brodey then lined one into left center. The ball bounced off the glove of diving left fielder, London, and trickled to the wall. Both Cardinal scored for a 5-3 lead.

However, in the bottom of the inning, Washington (30-19, 15-11) came back to tie it again. Three singles scored two and knotted the game at 5-5.

The hosts then took the lead in the eighth. A leadoff walk was followed by a sacrifice bunt and the go-ahead single. Another walk and single added some insurance for the Huskies, which they needed when Brodey tied it.

NOTABLES: Brodey extended his hitting streak to a career-best 13 games -- longest of the season for the Cardinal and longest for a Stanford player since Alex Blandino hit safely in 24 straight in 2014 ... Winker has reached safely in 19 of the last 20 games (dating back to April 17), including an eight-game hit streak ... Barr has reached base in each of the last nine games he has played ... Dunlap had his eighth multi-hit game and Brodey had his 15th ... Stanford is 2-2 in extra innings this season (away team won each) ... The game matched the longest by innings for Stanford this year and was the longest by time (4 hours, 31 minutes) ... Thorne's 6.2 innings was a career-best and topped his six-inning outing from Feb. 18, 2014 at San Jose State.

NEXT UP: Sunday will decide the series as the Cardinal and Huskies meet at noon.

FOLLOW THE CARDINAL: Inside access on snapchat, instagram, twitter (@stanfordbsb) and facebook (stanfordbaseball). #GoStanford