Pupils from Glencairn Primary learned about robots and coding when a touring programme of science shows visited their school in Stevenston.

Generation Science, delivered by the Edinburgh International Science Festival and powered by EDF Energy, saw the kids joining a robot sports training camp.

The pupils were put through their paces, using Lego WeDo kits to build their own goalkeepers and programming them to cover goals in a World Cup penalty shoot-out.

Mrs Sharon McDowell, head teacher at Glencairn Primary, said: “We are delighted to welcome the Generation Science tour to the school.

“Bricks and Blocks is an excellent way of engaging children with science and teaching them the basics of computer programming using a hands-on practical approach, which the school can then follow up with general discussion.”

Colin Weir, Station Director, Hunterston B Power Station, said: “Generation Science’s shows and workshops are great for sparking inquiring minds which is why EDF Energy continues to support them year on year.

“We hope that by bringing science into the classroom and making it fun, pupils taking part can see how exciting it can be and be inspired to study science or engineering in the future.”

Joan Davidson, Head of Education, Generation Science said: “We are delighted to be touring to Glencairn Primary School this year.

“Over the spring and summer terms we will visit over 600 schools in Scotland, educating young learners about the wonder of science and its real-world applications.

“Our aim is to improve the provision of science education in Scottish primary schools, bring science to life in the classroom and inform, inspire and engage young learners in science.”