Can I use feet and pounds instead of metres and kilograms?
There are two separate settings: how the page shows values to you, and which units each of your programs works in.
How values are shown
This setting changes the numbers you read on the page: part stats in the Factory, distances, speeds, masses and so on.
- Pick Metric or Imperial under Show values in when you create your account.
- To change it later, click your username at the top right, choose Profile, and pick the other one. It's kept as soon as you choose.
- If you're not logged in, the page guesses from your browser's region: imperial in the US, Liberia and Myanmar, metric everywhere else.
The game itself works in metric. Code in the editor is never rewritten.
Which units a program works in
A program says its units in a comment near its top, in its own language. In Python:
# units: imperial
In JavaScript, C++, Java and C# it's // units: imperial; in Lua -- units: imperial; in BASIC ' units: imperial; and in assembly ; units: imperial. A program without that line is metric.
The game then speaks to each program in its own units. In an imperial program, lengths such as a rangefinder's distance or a GPS position come in feet (and areas in square feet). Angles, times, hull points and counts are the same in both.
Switching a program's units
The button above the editor, next to Start from…, shows metric or imperial. Click it to switch:
- Brain code changes the program's units line, or adds one at the top.
- It marks the lines whose numbers look like lengths, and tells you which ones to check. For example, a
15meant as metres needs to become about49in feet. - It never changes those numbers for you, so check each marked line.
A new blank program from Start from… comes in the units you've chosen to see values in. House bot programs are written in metric.
When a program is imperial, the Reference under the editor gives its values in feet too.