Overview
SeaTurtle is a simple programming language for people ages 7+. The user writes commands to control the movement of a turtle. The turtle leaves a line behind it, producing a drawing. While the BASIC and Logo inspired SeaTurtle programming language is simple, it at the same time is effective at introducing first-time programmers to important programming concepts like variables, loops, subroutines, and if-statements.
Simple Syntax and Semantics
SeaTurtle features a simple English-like syntax with almost zero use of special characters (you won't find curly braces {}, and dollar signs $). SeaTurtle is by design a limited language, with several simplifications aimed at making it focused and approachable:
- Built-in language-level drawing commands
- All numbers are integers (no floating point support (no numbers with decimal places))
- The entire language is case-insensitive, meaning
MyVariableis the same asmyvariable - No use of special (non-latin alphabet A-Z) characters except for arithmetic
- if-statements are limited to a single boolean expression
- The only variable type is an integer, although boolean expressions exist in if-statements, and string literals (including string interpolation) can be used with the print-statement
- All variables have global scope
- Subroutines cannot have any parameters
Advanced programmers may scoff at some of these limitations and eccentricities, but they are aimed at eliminating whole classes of common errors that beginning programmers make. SeaTurtle is what you get if you imagine the most basic turing-complete language that can actually do something fun. It's not supposed to be powerful. It's supposed to be a gentle introduction to programming that gets someone interested in continuing their education with a much more advanced language like Python or Java.
How to Learn SeaTurtle
Learning programming for the first time is hard, but hopefully learning programming with a simple language like SeaTurtle that produces immediate results makes it a little easier. The best way to become a better programmer is to practice. With that said, before you start practicing you need a starting point that explains the syntax of the language. You have three options:
- Example Programs: The Examples menu in SeaTurtle includes several built-in example programs that you can run and dissect.
- Tutorials: The Tutorials menu in SeaTurtle links you to several video-based explanations of SeaTurtle programming.
- Language Reference: The Language Reference accessible from the left side of this window explains the basic programmatic constructs in SeaTurtle.
You can write your first SeaTurtle program in a matter of minutes. Good luck!