YORK, Maine — One program has a standing reservation in the Western Maine Class B semifinals.

The other is a Class C team whose last outing was a loss to a team that entered the game winless.

So when Traip Academy guard Kaylie Andrews hit a 3-pointer late in the first quarter to pull her team within 17-15 of mighty York on Tuesday night, it raised more than a few eyebrows in a half-filled Butler Gym.

“I don’t think we expected such quick releases right off the bat,” said York guard Ruby Cribby.

Quick release. But a quick response, too.

Freshman guard Shannon Todd scored 19 points, and the Wildcats pitched a second-quarter shutout en route to a 56-27 win, one that improved their record to 13-2 with three games left in the regular season.

Prior to tip-off, York’s three seniors — Cribby, and forwards Emily Campbell and Marquis MacGlashing — were recognized, as the Wildcats play their final three regular-season games on the road. If they finish fourth or better in the Western Maine Class B standings, they advance straight to the regional quarterfinals at the Portland Expo.

“If we play like we normally do these last three games,” said York coach Rick Clark, “someone would have to do something spectacular to stop us (from finishing in the top four).”

That made Tuesday’s game a little bittersweet for the seniors, who have had a hand in state and regional titles over the years, and were in no rush to leave the gym when this one was over.

“I’ve played with Emily and Marquis since we were in third grade,” said Cribby. “It’s definitely a little emotional knowing it’s the last time we’re playing on this floor together.”

Cribby added 12 points on a night when York’s best basketball came on the defensive end. It held the Rangers (5-10) scoreless in the second and fourth quarters.

“That’s a real tough match-up for us,” said Traip coach Paul Marquis, whose tallest player is 5-foot-7. “We don’t go inside often on offense and they do a pretty good job of snuffing that out. … MacGlashing sets the tone down there and she’s tough.”

Early on, the Rangers hung around from the outside. Guard Kendra Kagiliery (team-high 13 points) opened the game with a three and added another one soon after. Her team finished with five treys.

“We were concerned about their 3-point shooting,” said Clark. “(Kagiliery) is one of the top 3-point shooters in the league and she was hot. … It wasn’t unexpected. But we put a clamp on that the rest of the half.”

Todd hit a three of her own as the Wildcats closed the first quarter on a 4-0 run. Then they scored all 13 points in the second quarter to go up 34-15 at the break, dominating on the boards.

“We were one-and-done in that second quarter,” said Marquis.

The Rangers knew they’d have a building season after graduating standout Selena Lorrey, one of the best players in recent program memory. But even at 5-10 — with eight games against Class B teams on their slate — they’re safely among the roster of teams that will qualify for the regional Class C tournament.

“I like where we’re headed,” said Marquis. “We’re not going to have a record that’s all that attractive, but I think we’re going to be OK (for the tournament).”

The Wildcats hit the road from here on out, first in some unfriendly gyms to close the regular season, then to the Portland Expo for the regional quarterfinals and — hopefully — the Cumberland County Civic Center.