Mechanism Games

Java from absolute zero to under-the-hood internals — you don't read the mechanism, you enact it.
Play a unit. Then explain it — in your own words.

Phase 0 — Start from zero

01Your first program
Robots, println, the semicolon, and how Java actually runs
PLAY
02Variables
Boxes with names — and why = means "store", never "equals"
PLAY
03Data types & casting
Why 7 / 2 is 3 — and how to make it 3.5
PLAY
04Operators
%, precedence, and 17 pizza slices for 5 friends
PLAY
05Strings
"1" + 1 = "11", counting from zero, and your first crash
PLAY
06User input
Scanner, the pause, and what "abc" does to nextInt()
PLAY
07Booleans & comparisons
true/false as values; &&, ||, ! — and = vs ==
PLAY
08If / else
Forks in the road — and why ladder order matters
PLAY
09Switch
The dispatcher — and the famous missing-break trap
PLAY
10While loops
Repeat until — and surviving your first infinite loop
PLAY
11For loops
init; condition; update — and the off-by-one of all time
PLAY
12Arrays
A numbered shelf, index 0, and the out-of-bounds crash
PLAY
13Methods
Machines with inputs and outputs — defining runs nothing
PLAY
14Scope & recursion
Evaporating boxes, the call stack, and StackOverflowError
PLAY

Phase 1 — Objects

15Classes & objects
Blueprints, houses — and two leashes on one dog
PLAY
16Constructors & this
Birth certificates, and the vanishing default constructor
PLAY
17Encapsulation
private walls, guarded doors, unbreakable objects
PLAY
18Inheritance & super
is-a, shared members, and the two-stage birth
PLAY
19Polymorphism & overriding
The runtime type decides — and @Override saves you
PLAY
20Abstraction & interfaces
Incomplete blueprints and pure contracts
PLAY
21static & final
What the class itself owns — and main() fully explained
PLAY
22Packages & the API
Folders, imports, and Java's giant free library
PLAY
23Enums & inner classes
Types where invalid values are impossible
PLAY
24equals, hashCode & toString
Why == lies about objects — and how HashMaps lose them
PLAY

Phase 2+ — Data, exceptions, modern Java, internals

25–50Collections → HashMap → Streams → JVM & GC → Threads → Spring → Kafka
Includes the 7 original Mastery games, being ported & upgraded
MAPPED

Progress is saved in your browser only (localStorage — no accounts, no tracking).
Built with the enact-the-mechanism method: every step is something you do, not something you read.