Liam Boyce’s second-half penalty was the difference to secure the three points in what was a largely turgid affair, impacted by the wind.
The league leaders had to stand up to a battle with the home side making it very difficult with their pressure but failed to properly test Craig Gordon.
Robbie Neilson revealed he opted for a front two due to the conditions but it wasn’t until the second half until the visitors took control of proceedings.
So how did the 14 Hearts players rate out of ten?
Player ratings scale - 10: One of the best performances you've seen. 9: Outstanding. 8: Very good. 7: Good. 6: Average. 5: Poor, 4: Very poor. 3: A terrible day at the office. 2: Abysmal. 1: One of the worst performances you've seen.

5. Stephen Kingsley - 7
Wasn't much of an attacking threat but solid and reliable defensively. Ayr were rarely a threat down the flanks. Photo: Mark Scates - SNS Group

6. Andy Irving - 6
Quiet first-half, gave Hearts plenty of control in the second once the team were ahead. Surprisingly subbed when his influence had been growing. Photo: Ross Parker - SNS Group

7. Andy Halliday - 7
It was a night to muck in, win battles, make it difficult for opponents. Exactly what Halliday did. Rarely flashy with the ball but brings a required combative quality. Photo: Mark Scates - SNS Group

8. Gary Mackay-Steven - 5
One notable, positive run but on the periphery most of the time he was on the pitch. Was switched flanks early on but didn't take on the full-back often enough. Photo: Paul Devlin - SNS Group

