Cardross Primary beat teams from across the country to win the Microsoft Kodu computer programming competition at West College Scotland.
It will now be the first Scottish school to be invited to Microsoft's UK headquarters, in Reading, Berkshire, to join the UK-wide programming competition.
The Cardross team Klan Kodu - Erin Gregory, Etienne Machtelinckx and Sarah Mitchell - impressed the judges with their game Maze Adventures.
The Kodu Kup is a national game creation competition organised by the Microsoft Educator Network, and is aimed at children aged between seven and 14.
Cardross Primary head teacher Elspeth Davis said: "This is an outstanding achievement for our pupils. We are exceptionally proud of them, their skills and achievement and wish them well for the UK final next month."