The Duchess of Cambridge was sent signals similar to those sent out by the enemy and interpreted at 'spy school' Bletchley Park during the Second World War.
Her grandmother Valerie Glassborow worked at the famous site as a civilian member of staff, probably a duty officer, with her twin sister Mary.
Kate's visit marked a year-long restoration project at the Buckinghamshire site.
More top news
The heavily pregnant Duchess of Cambridge refused to be put off by bitterly cold winds and snow as she greeted Irish Guards members.
Celebrations are taking place across Northern Ireland to mark St Patrick’s Day.