Aberdeen Grammar had to dig deep against a Kirkcaldy side who simply refused to give in, only easing past the Fifers late in the second half to win 27-25.
The result keeps alive the Rubislaw side’s hopes of a top four place in National League 1.
Ali O’Connor, Grammar’s head coach, pictured, acknowledged it had been a tough encounter.
He said: “Kirkcaldy played well, but we demonstrated some character when it mattered most.
“Replacement full back Sean Mills had a great game, earning him the man of the match award.
“His try near the end of the game proved to be vital, and the difference between the two sides.
“We now need to end the year with a win at home to Kelso, but that will be a tough one too.”
The other Grammar try scorers in the try bonus win were Calum Reddish, Chris Jollands and Tom Aplin, who also kicked a penalty and two conversions.
At Countesswells, Gordonians returned to the top of National League 3 after thrashing Carrick 52-5.
But the Granite City team were helped by Ardrossan Accies, who beat leaders Newton Stewart 26-15, thus deposing them at the head of affairs.
The Aberdeen side ran in eight tries, two of them falling to captain and hooker Tom Williams, while centre Danny Usugo also grabbed a brace in the rout of the Ayrshire side.
“It’s been a good day for us, but there are bigger challenges to come.
“We now need to beat Haddington away from home to end the year as the only unbeaten side in the top four club leagues in Scotland,” said Ryan Morrice, the Gordonians’ head coach.
In Caley Divsion 1, Aberdeen Wanderers made a bold bid to avoid relegation.
Although it needed a late try from Scott Byars for the Groats Road side to beat fellow strugglers Alloa 12-8. The flying Scott also scored his side’s other touchdown.
Ellon were on song at the Meadows, where they surged up to fourth place after beating Hillfoots 43-12.
Winger Henry Cole had a great game, scoring two tries, while full back Ross Greig kept the scoreboard ticking over, kicking five of the six conversions and one penalty.
In Caley 2 North, Garioch kept up their good run, easing past North Police Scotland 20-12 in Aberdeen.
Mackie FP’s returned to winning ways, beating Banff 37-7 at Redcloak, and Moray were surprise 42-29 winners at Rubislaw where they played Aberdeen Grammar 2nds.
In Caley 3 North, leaders Aberdeenshire beat Stornoway 31-7 on Lewis, and Aberdeen University were 64-7 winners against the Medics.
In the only fixture played in Caley 4 North, leaders Peterhead pretty well wrapped up the league after beating second placed Fraserburgh at Catto Park, taking them 14 points clear of their Buchan rivals at the top of the table.