Sailboat Simulator teaching notes

For middle and high school science, physics and computer science teachers, and for sailing program staff running a STEM day. These notes cover a first period, the levels, the misconceptions the app is built to confront, and what it leaves out.

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 2, The upwind buoy. Ask the class how to get to a buoy that is straight upwind. Take the first answer, steer straight at it, and let the boat stop and drift backward. Then ask what a sailor does instead, and sail it their way.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Sailboat Simulator right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/sailboatsim?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/sailboatsim?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Sailboat Simulator demo from mytekDev"></iframe>

About these notes

Sailboat Simulator is a small one-sail dinghy on a lake. Its speed at each angle to the wind comes from a table shaped like a real dinghy's, cut down when the sail is set wrong for the wind; the sideways slide, the heel and the stop in the no-go zone come from the forces on the sail, the centerboard and the hull. The hand levels, the code levels, the course builder and the logbook all run on that one model.

There are fourteen levels. Levels 1 to 6 are sailed by hand with the arrow keys. Levels 7 to 14 are sailed by a program in Blocks or Python. Build your own course adds buoys, islands and a wind of the student's or the teacher's choosing.

The code levels follow the tasks robot sailboat programs and student competitions set: hold a heading, round marks and pass a gate, keep station in a box, search for a buoy, avoid a boat on a collision course. Each is a level here in our own form, with our own course and numbers.

A first period

Levels 1 and 2 fit in a period, with time to argue about how a boat gets upwind.

  1. Out and back on a reach (10 minutes) Open Level 1. Press Play or the space bar to cast off, and steer with the left and right arrow keys or the Steer buttons. The sail sets itself. Ask students to watch the panel on the left: the blue arrow is the wind the boat feels, and the read-out names the point of sail as it changes.
  2. Predict, then steer straight at it (10 minutes) Open Level 2: the red buoy is straight upwind. Ask how to get there, and try the first answer, steering straight at it. The sail flaps, the boat stops, and it drifts backward. The gray wedge appears: the no-go zone. Ask what a sailor does instead.
  3. Tack up to it (15 minutes) Sail at an angle to the wind, about 45 degrees off it, then turn through the wind to the same angle on the other side. That turn is a tack. The result counts the tacks; ask who used the fewest, and why fewer, longer legs can be faster.
  4. Talk (10 minutes) Ask which way was fastest on Level 1: across the wind or with it behind. Then turn on Boat, Show the numbers and compare the wind you feel with the true wind on each point of sail.

The levels

Each level opens with one idea and a mission box that says what to do. Levels 8, 9, 10, 12, 13 and 14 have a time to beat; a run over it shows the time and asks for another try.

LevelThe jobWhat it is built to show
1. Out and back on a reachTo the yellow buoy and backSteering, and the points of sail named as the boat turns
2. The upwind buoyThe red buoy, straight upwindThe no-go zone, in irons, and the tack
3. Down to the dockDown the lake past the green buoyThe gybe, and why downwind is slower than a reach
4. Trim it yourselfThe fastest sail setting, by the up and down arrowsTrim by the telltale: drooping means a stall
5. Board upThe red buoy, starting with the centerboard upLeeway, and what the centerboard does
6. The triangleYellow, red, green and home, setting the sailEverything at once
7. Hold a headingEast for 30 seconds, by the rudder aloneA feedback loop: rudder from the heading error
8. Trim by ruleOut and back in under 2:20 with the sail set by ruleA rule from a sensor: sail out from the wind angle
9. Sail to any buoyThe red buoy upwind in under 4:00The tack rule, a compound conditional, as a sail_to function
10. The gateRound A and B, back through a 3 meter gateReusing sail_to with next_mark: one function, every leg
11. Stay in the boxFive minutes inside a boxStation keeping: a boat with no brakes
12. Find the buoyA hidden orange buoy in a search area, in under 10:00A search pattern and a sensor that answers only up close
13. Look outThe yellow buoy, never within 10 meters of a crossing motorboatReacting to an event: see it, then turn away
14. Build the polarSteady at 12 or more angles to the windData logged into a model: the boat's own polar diagram

The code levels share one set of commands. A program can read wind_angle (the wind it feels, plus from the right), true_wind_angle, wind_direction (the compass direction the true wind comes from), wind_speed, true_wind_speed, heading, course, speed, position, heel and time, find the marks with bearing_to and distance_to, and act with rudder, sail, steer_to, tack, gybe and wait. steer_to opens at Level 8, after Level 7 has the student build it from the rudder.

What students get wrong, and where the app answers it

What students thinkWhere the app answers it
The wind just pushes the sail alongLevel 1: the boat is fastest across the wind, where the sail works like a wing. Only downwind is it mostly pushed.
Downwind is the fastest way to sailLevel 3 and the polar from Level 14: the boat moving with the wind feels less of it, and a reach beats a run.
Steer straight at the markLevel 2: pointed into the wind the boat stops and drifts back. The no-go zone is about 45 degrees each side.
Pull the sail in tighter to go fasterLevel 4: pulled in too far, the telltale droops and the boat slows. The best setting lets the sail out until just before it flaps.
The wind you feel is the real windShow the numbers: sailing toward the wind, the wind the boat feels is stronger and further forward than the true wind.
A sail makes lift because air takes a longer path over itA sail is a thin sheet with no longer path. It turns the air, and the air pushes back. The app shows it as a wing without the path story.

What the app simplifies, on purpose

For sailing programs

The hand levels cover what a first sailing lesson explains on shore: the no-go zone, the points of sail, the tack and the gybe, trim by the telltale and the centerboard. Getting stuck in irons and drifting backward is built in, with the rudder working the wrong way round until the bow falls off, and holding a key swings the bow the way it is held, as backing the sail does on a real boat.

It is not a sailing course. Rigging, balance, right of way, safety and the feel of a real boat come from an instructor on the water. A student who wants to sail is best pointed to a community sailing program.

Setting it up for a class

No setup is needed. With free accounts, each student's levels, best times, programs, polar and course save as one project. A shared project sails the student's best passed level again, and typed words in it pass the platform's filter.

Build your own course lets a teacher set a challenge: up to 8 buoys and 6 islands anywhere on the lake, the wind from any of eight directions at 4 to 14 knots, gusts and shifts on or off, sailed by hand or by program. The logbook page prints each level's best time, the polar and the program that passed each code level.

Standards

Middle school keeps vectors out of MS-PS2-2, so the middle school story is the boat's own axis, and apparent wind stays a picture there. Lift is enrichment at every grade.

More help

Is something on this page wrong or not clear? Write to us.

Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.