---
title: "Vibe Coding and AI Agents Classes in St Andrews | Ages 6 to 67"
description: "Live online vibe coding, AI agents and Python lessons for St Andrews, Strathkinness, Guardbridge and Boarhills learners in Fife, aged 6 to 67. First lesson free."
canonical: https://learn.modernagecoders.com/vibe-coding-and-ai-agents-classes-in-st-andrews
source: src/pages/vibe-coding-and-ai-agents-classes-in-st-andrews.html
---
> Live online vibe coding, AI agents and Python lessons for St Andrews, Strathkinness, Guardbridge and Boarhills learners in Fife, aged 6 to 67. First lesson free.

Skip to contentSt Andrews course picks

## St Andrews courses in reasoning, vibe coding and agents

Four routes in, set by age. Every one opens with a live lesson that costs nothing, booked without card details.

[![Problem Solving and Computational Thinking for Kids course thumbnail](/images/problem-solving-kids.webp)Ages 7 to 12Problem Solving and Computational Thinking for KidsThe how-to-think course: mazes, search orders and knowing when you have looked everywhere.See the syllabus](/courses/problem-solving-and-computational-thinking-for-kids)[![Vibe Coding for Kids course thumbnail](/images/vibe-coding-kids.webp)Ages 8 to 12Vibe Coding for KidsScratch games dreamed up by the learner, built with an AI and tested thoroughly.See the syllabus](/courses/vibe-coding-for-kids-beginners-ai-scratch-game-dev)[![Vibe Coding for Teens course thumbnail](/images/vibe-coding-teens.webp)Ages 13 to 17Vibe Coding for TeensPython and web projects with AI help, including the exploring agents on St Andrews paths.See the syllabus](/courses/vibe-coding-for-teens-python-web-ai-projects-course)[![Generative AI Course course thumbnail](/images/generative-ai-college.webp)Students and adultsGenerative AI CourseHow agents search, plan and use tools, built in Python.See the syllabus](/courses/complete-generative-ai-masterclass-college)

Browse the [course atlas](/course-atlas) for more than one hundred options and use the [coding roadmap](/coding-roadmap) to check prerequisites.

The four we are known for

### Python, AI, vibe coding and agentic coding

These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

[![Vibe Coding for Teens course thumbnail](/images/vibe-coding-teens.webp)Vibe codingAges 13 to 17Vibe Coding for TeensPython, web and AI projects where the learner still owns the thinking.See the syllabus](/courses/vibe-coding-for-teens-python-web-ai-projects-course)[![Python Automation Course course thumbnail](/images/python-college.webp)Python and AICollege and adultPython Automation CourseAutomate the work you already do, then let AI carry part of it.See the syllabus](/courses/python-ai-automation-masterclass-college)[![AI and Machine Learning for Teens course thumbnail](/images/ai-ml-teens.webp)AI and MLAges 14 to 18AI and Machine Learning for TeensTrain a model, read what it learned, and be able to say why it is wrong.See the syllabus](/courses/ai-ml-masterclass-teens)[![Codex & Claude Code course thumbnail](/images/codex-claude-code-adults.webp)Agentic codingProfessionalsCodex & Claude CodeRun AI coding agents on real work without losing control of the codebase.See the syllabus](/courses/codex-and-claude-code-ai-coding-agents-masterclass-for-adults-professionals)St Andrews and north-east Fife

## St Andrews, Strathkinness, Guardbridge and Boarhills

The NRS estimate for St Andrews, and places recorded in KY16.

| Area | People |
| --- | --- |
| St Andrews locality, mid-2020 | 18,410 |

Postcodes.io lists Boarhills, Guardbridge and Strathkinness as villages and Kincaple as a hamlet in the KY16 postcode district of Fife. Schools in the area teach the Curriculum for Excellence; lessons follow the Scottish year structure, and we support SQA Computing Science and Maths from National 5 up to Advanced Higher. Holiday weeks are skipped once you send us the dates.

### Fife pages and SQA support

See [coding classes in Fife](/coding-classes-in-fife), [Glenrothes](/best-coding-and-ai-classes-in-glenrothes) and [Advanced Higher Computing Science project help](/advanced-higher-computing-science-project-help). Why understanding comes before tools is on [learn to think, not just use AI tools](/learn-to-think-not-just-use-ai-tools-uk).

The St Andrews project

## Breadth-first against depth-first: agents exploring St Andrews without a map

One start, 60 destinations, three ways to explore, and a count of every junction looked at.

The learner downloads the walkable paths and streets of St Andrews from OpenStreetMap and simplifies them to 3,086 junctions joined by 3,890 segments, 172.4 km in all. Every search starts from the point OpenStreetMap uses to label the town. For each of 60 random destinations the program runs three searches: breadth-first, which counts steps between junctions; depth-first, which dives down one path at a time in a random order; and Dijkstra's algorithm, which always expands the nearest point by actual distance and so finds the true shortest route. The median destination is 1,270 m away, 25 junctions from the start.

| Strategy | Junctions explored before finding the target | Route returned against the true shortest |
| --- | --- | --- |
| Dijkstra (reference) | 1,300 | Always the shortest |
| Breadth-first search | 1,387 | 1.27 times as long |
| Depth-first search | 1,637 | 11.43 times as long |

All three look at a large share of the town before finding a destination only 25 junctions away, because none of them knows which way the target lies. Breadth-first finds routes with the fewest junctions, but fewest junctions is not the same as fewest metres, so its routes ran about 27% long and it found the true shortest in none of the 60 runs. Depth-first is the one to watch: it explored the most, and the route it brought back was typically eleven times the shortest, over three times too long for 91.7% of destinations, because it follows whatever path it happens to be on. An agent that explores depth-first and reports the first route it finds can be wildly wasteful.

### P5 to P7

Explore a paper maze two ways, ring by ring and one corridor at a time, and count the squares visited.

### S1 to S3

Write breadth-first search in Python on a small piece of the St Andrews path network.

### S4 and up

Compare BFS, DFS and Dijkstra on 60 destinations and explain every difference in the table.

### OpenStreetMap paths, our agents

Paths and streets are from OpenStreetMap and its contributors under the Open Database Licence. The simplification, start point, destinations and all counts are our own work.

How agents search

## What this teaches about vibe coding and AI agents

Search order is a design choice, and it shapes both effort and answer.

| In the path project | When an AI agent explores |
| --- | --- |
| All three explored over 1,300 junctions | Without guidance, search is expensive |
| BFS routes ran 27% long | Fewest steps is not always cheapest |
| DFS routes ran eleven times long | The first answer found can be a poor one |
| Dijkstra always found the shortest | The right measure of cost matters |
| None knew where the target was | Hints and heuristics make agents efficient |

AI agents searching files, websites or options face the same choices: look broadly first or dig deep, and stop at the first answer or keep going for a better one. An agent that dives down the first promising link and reports what it finds there behaves a lot like depth-first search. In vibe coding the learner describes a program and the AI writes it; our St Andrews learners also decide how their agents should search and when they may stop, then measure the result. Agent building waits until the learner can write Python without help, which for most is S5 or beyond, and Copilot Studio work happens only in private lessons. The steps are on [our AI agents course for UK learners](/ai-agents-course-for-students-uk), and the approach on [understand the code, don't copy-paste](/understand-the-code-dont-copy-paste-uk).

OpenStreetMap, National Records of Scotland and postcodes.io supply the open data used here and are not linked to us; the agents, and any mistakes in them, are ours.

Stages

## From paper mazes to searching agents

Your year group gives us a first idea; the trial settles the level.

P1 to P7

### How to think

Mazes, orders of search and checking you missed nothing.

[Problem Solving and Computational Thinking for Kids](/courses/problem-solving-and-computational-thinking-for-kids)[Scratch Coding for Kids](/courses/scratch-programming-complete-course)P5 to S2

### Vibe coding for kids

Games and apps planned by the learner and built with AI help.

[Vibe Coding for Kids](/courses/vibe-coding-for-kids-beginners-ai-scratch-game-dev)[Python and AI for Kids](/courses/python-ai-kids-masterclass)S3 to S6

### Python and search

Queues, stacks and graph search alongside SQA Computing Science.

[Vibe Coding for Teens](/courses/vibe-coding-for-teens-python-web-ai-projects-course)[Data Structures & Algorithms Course](/courses/data-structures-algorithms-masterclass-college)Adults

### Agents that search

Search strategies, tools and planning in Python agents.

[Generative AI Course](/courses/complete-generative-ai-masterclass-college)[Python Masterclass](/courses/python-programming-masterclass-zero-to-advanced-college)Agents and search

## What is the difference between breadth-first and depth-first search?

Breadth-first search explores everything one step away, then two, then three, so it finds the route with the fewest steps; depth-first search follows one path as far as possible before backing up, so it can find a route quickly but often a very long one.

Exploring St Andrews paths to 60 random destinations, breadth-first returned routes a median 1.27 times the shortest, while depth-first returned routes 11.43 times the shortest after exploring more of the town.

After this race, learners greet any agent's answer with two questions: what order did it search in, and did it settle for the first hit?

A St Andrews teenager who has coded both searches can tell a thorough agent from a hasty one, and that judgement is built by writing code. The longer argument is in [why teenagers should still learn to code in 2026](/blog/is-coding-worth-learning-2026).

How it works

## Strathkinness to Boarhills, online

Laptop or desktop, a camera, and a connection strong enough for video: that is all.

### Code by the learner

Students write and run everything; the tutor watches through screen share and asks them to predict each search.

### Trial finds the level

The free session shows where to begin; SQA exams are noted if one is ahead.

### Free first session

Lesson one is free of charge and ends with a course suggestion.

### Groups by stage

Five to ten learners from around Britain at one level per class.

### Two a week in term

Holidays off.

### Stable timetable

UK clock changes are absorbed by our tutors, not by your slot.

Why online

Five learners at the same level, free on one evening and living close together, are hard to find in a small town. Online, it stops mattering.

Fees

## St Andrews fees

St Andrews learners pay our international rates, used in every country but India.

First class**USD 0**

A free first lesson, then our advice.

Group tuition**USD 100**

Around eight live group lessons monthly.

Private tuition**USD 150**

Around eight live one-to-one lessons monthly.

We invoice in US dollars, never sterling, and not until the trial has settled a course and a weekly time; holidays, absences and moving between group and private are set out on the pricing page.

Request placement[Check availability](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20could%20we%20book%20a%20free%20vibe%20coding%20or%20AI%20agents%20lesson%20for%20a%20learner%20in%20St%20Andrews%3F)Reviews

## Fife parents and learners further afield, reviewing us on Google

Rated 4.9 across 547 Google reviews. These are real reviews, reproduced as written.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Free placement class

## Book a free St Andrews lesson

An age or year group and a favourite hobby are enough to plan from. Trials range from exploring a paper maze and an AI-assisted Scratch game to first Python or searching real paths.

### Want a class sooner? Book a priority demo

A priority demo is a full class of about 45 to 60 minutes. After the class the mentor sends a written skill report and a personal learning roadmap on WhatsApp. If you enrol, the demo fee is adjusted against your first month's fee. Share your demo Order ID with us on WhatsApp and we take it off.

[Book a priority demo](/book-demo)

### Contact the team directly

WhatsApp or call [+91 91233 66161](tel:+919123366161), or email [connect@modernagecoders.com](mailto:connect@modernagecoders.com). This is Modern Age Coders' actual contact, an Indian number, and not an invented St Andrews one.

[WhatsApp Modern Age Coders](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20could%20we%20book%20a%20free%20vibe%20coding%20or%20AI%20agents%20lesson%20for%20a%20learner%20in%20St%20Andrews%3F)

Submitted details are used for placement and follow-up.

FAQ

## St Andrews questions

BFS, DFS, the St Andrews paths, vibe coding and how lessons run.

### What is the population of St Andrews?

National Records of Scotland estimated 18,410 people in the St Andrews locality in mid-2020.

### Are vibe coding and AI agents classes available online in St Andrews?

All lessons are live video calls, so Guardbridge, Strathkinness and the rest of north-east Fife are covered for ages 6 to 67.

### What is uninformed search?

Search that has no sense of where the goal lies, such as breadth-first and depth-first search. Informed search adds a hint, like the straight-line distance to the goal.

### Why did depth-first search return such long routes?

It follows whatever path it is on until it runs out, so the first route it reaches the target by is often a long detour. In our St Andrews test it was over three times the shortest for 91.7% of destinations.

### What does the St Andrews project involve?

Letting breadth-first, depth-first and Dijkstra searches explore 172.4 km of mapped St Andrews paths to 60 random destinations and comparing effort and route length.

### Where does vibe coding come in?

From the start, at any age: the learner explains the program, the AI drafts it, and the learner tests and fixes it.

### When do learners start on AI agents?

Once they write Python unaided, commonly in the senior phase or as adults; Copilot Studio agents are one-to-one.

### Do you support Advanced Higher Computing Science?

Yes, along with National 5 and Higher, in Computing Science and Maths, taught for understanding with no promised grades.

### How much are lessons?

Trial lesson free; from then on, USD 100 monthly for class lessons or USD 150 monthly for solo ones.

### Do lessons stop for holidays?

They do; school holidays are lesson-free once you tell us the dates.

Nearby

## More Fife and Tayside pages

Each has its own experiment: [Glenrothes](/best-coding-and-ai-classes-in-glenrothes) (where rain flows), [Kirkcaldy](/ai-and-programming-classes-in-kirkcaldy), [Dundee](/best-coding-class-in-dundee) and [Fife](/coding-classes-in-fife). Everywhere else is reached from the [Scotland page](/coding-and-ai-classes-in-scotland) or the [UK hub](/coding-classes-in-united-kingdom).

Book the free class[Book a priority demo](/book-demo)[Message us on WhatsApp](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20could%20we%20book%20a%20free%20vibe%20coding%20or%20AI%20agents%20lesson%20for%20a%20learner%20in%20St%20Andrews%3F)Free class[Priority demo](/book-demo)[Call us](tel:+919123366161)

## Keep exploring Modern Age Coders

### Coding classes in nearby places

- [Vibe Coding and AI Agents Classes in Stockton-on-Tees](/vibe-coding-and-ai-agents-classes-in-stockton-on-tees)
- [Vibe Coding and AI Agents Classes in Sittingbourne](/vibe-coding-and-ai-agents-classes-in-sittingbourne)
- [Vibe Coding and AI Agents Classes in Taunton](/vibe-coding-and-ai-agents-classes-in-taunton)
- [Vibe Coding and AI Agents Classes in Scunthorpe](/vibe-coding-and-ai-agents-classes-in-scunthorpe)
- [Vibe Coding and AI Agents Classes: Thundersley, South Benfleet](/vibe-coding-and-ai-agents-classes-in-thundersley-and-south-benfleet)
- [Vibe Coding and AI Agents Classes in Rhyl](/vibe-coding-and-ai-agents-classes-in-rhyl)
- [Coding Classes in Powys](/coding-classes-in-powys)
- [Coding Classes in Amsterdam-Zuid](/coding-classes-in-amsterdam-zuid)
- [Coding Classes in Rutland](/coding-classes-in-rutland)
- [AI and Programming Classes in Leith, Edinburgh](/ai-and-programming-classes-in-leith-edinburgh)
- [Linear Regression](/resources/ai-and-machine-learning/linear-regression/practice)

### Learn more

- [Coding and AI Classes in Harlow](/best-coding-and-ai-classes-in-harlow)
- [AI and Programming Classes in Banbury, Oxfordshire](/ai-and-programming-classes-in-banbury)
- [AI and Programming Classes in Barnsley](/ai-and-programming-classes-in-barnsley)
- [AI and Programming Classes in East Kilbride](/ai-and-programming-classes-in-east-kilbride)

### Free resources

- [AI & Machine Learning Tutorial: Basics to Deep Learning](/resources/ai-and-machine-learning)
- [Logistic Regression and Classification](/resources/ai-and-machine-learning/logistic-regression-and-classification)
- [Natural Language Processing (NLP) Fundamentals](/resources/ai-and-machine-learning/natural-language-processing)
- [Support Vector Machines (SVM)](/resources/ai-and-machine-learning/support-vector-machines)

### From the blog

- [AI & Machine Learning Guides](/blog/topic/ai)
- [What is AI? Complete Beginner's Guide: How to Start, Which Languages](/blog/what-is-ai-complete-beginners-guide-how-to-start)
- [Do AI Detectors Work? What Students and Parents Should Know](/blog/do-ai-detectors-work)
- [UAE Made AI Mandatory in Schools: What It Means](/blog/uae-ai-curriculum-schools-what-it-means)

### Start here

- [What Modern Age Coders families say](/love)
- [Book a free demo class with Modern Age Coders](/book-demo)

---

*Canonical: https://learn.modernagecoders.com/vibe-coding-and-ai-agents-classes-in-st-andrews*
