Playable demo · browser
Vesper Protocol mini demo: three ternary logic puzzles
Before plugging your console into the Vesper, practise on three alien locks. Each input takes three values: −1, 0 or +1. Set them so that every output reaches its target.
This demo needs JavaScript. In the meantime, read our ternary logic tutorial.
| Output | Value | Target | Status |
|---|
All three locks are open
You can now flip a value with NEG, combine two conditions with MIN and MAX, read a balanced ternary number and anticipate ADD's "wrap-around". That is exactly what the first hours of Vesper Protocol ask of you.
Embed this demo on your site
Teacher, blogger or coding club? Paste this code into your page: the demo shows up in a frame, with a link back to its original page. Free, with no ads and no trackers.
The rules in short
| NEG(a) | Flips a: +1 becomes −1, 0 stays 0. |
|---|---|
| MIN(a, b) | The smaller value: ternary "AND". |
| MAX(a, b) | The larger value: ternary "OR". |
| ADD(a, b) | Addition modulo 3: +1 + +1 = −1, −1 + −1 = +1. |
| ABC | Balanced ternary number: 9 × A + 3 × B + C. |
Going further
This demo covers the basics of the puzzles in Vesper Protocol. The rules are explained in detail in the ternary logic tutorial. The full demo, with exploration, Guardians and oxygen management, is a free download on itch.io.