Schoolchildren in the North-east have been using robots and computer code to solve a sporting problem.
Pupils at Kincardine O’Neil Primary School took part in the Bricks and Blocks workshop and tried to design something that could save penalty kicks.
The event was part of Generation Science, a touring programme of workshops from the Edinburgh International Science Festival.
It was the first of 60 to be held over the coming months in schools across Aberdeen and Aberdeenshire.
The children were challenged to a beat the goalie competition, where they had to use LEGO to build the goalkeeper and design a computer program to block the ball.
The workshops have been sponsored by the oil and gas company Total E&P which has been working with Generation Science since 2013 to encourage children to learn STEM subjects.
Frances Ridley, the school’s headteacher, said of Monday’s visit: “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.”
Generation Science will visit 15 schools in Aberdeen, as well as 45 in Aberdeenshire this school year.