Mask, set, clear, toggle, and test have different intent.
Bits, Math, and Geometry
6 chapters · 13 challenges · The Binary Observatory
Understand the idea, practise through play, then prove it in code. Choose your next quest below.
Visual introduction to this topic
Why use bits, math, and geometry?
These tools encode structure directly in numbers. Bits store compact yes-or-no state, algebra removes repeated work, and coordinates turn shapes and movement into testable relations.
Think of a control panel. Each switch controls one independent feature. A single integer can remember many switches, and bit operations change or inspect them together.
Each position represents one power of two and one independent boolean choice.
Overflow, sign, division, and modulo rules vary across languages.
Use vectors, cross products, slopes, and bounds instead of visual guesses.
Reuse the count after removing one set bit
Bit Masks
0/2 completePractice bit masks through 2 visual expeditions.
XOR
0/3 completePractice XOR through 3 visual expeditions.
Integer Arithmetic
0/2 completePractice integer arithmetic through 2 visual expeditions.
Coordinates
0/2 completePractice coordinates through 2 visual expeditions.
Matrix Transforms
0/2 completePractice matrix transforms through 2 visual expeditions.
Number Theory
0/2 completePractice number theory through 2 visual expeditions.
Built from authoritative material
This track is checked against the sources below. Visual traces still carry their own complete or guided coverage label, so unfinished explanations are not presented as complete executions.