
Can You Play Painted Cube Puzzle on a Keyboard or Phone?
Yes — Painted Cube Puzzle runs in any modern browser and accepts both keyboard and touchscreen input on the same fixed five-round format. The answer grid is a two-by-two layout of choice buttons that respond to taps on a phone, clicks with a mouse, or arrow-key navigation followed by Enter or Space on a physical keyboard, so you never need to swap devices or learn a second control scheme mid-round. Every round asks the same kind of question — how many small cubes belong to one specific position class inside an n × n × n cut cube — so once the control method is learned, the only skill being tested is your ability to classify positions before doing arithmetic.
For readers who landed on this page after typing the exact question into a search engine, the short answer is that keyboard play and phone play are both fully supported and the same scoring rules apply on either device. The remaining sections explain the underlying counting method, walk through keyboard and touch controls step by step, and show a single worked example so the formulas can be checked before you start a round.
How the Painted Cube Puzzle Works
The setup is the standard one used in every published source: all six outside faces of a large cube are painted, and the cube is then cut into an n × n × n grid of equal unit cubes. Each round of Painted Cube Puzzle shows a grid size and asks how many small cubes fall into exactly one position class — corner cubes with three painted faces, edge-interior cubes with two, face-interior cubes with one, hidden core cubes with none, or every cube touched by paint. The questions are fixed and deterministic, so a repeated run is a chance to refine your method rather than hope for easier random numbers.
The central idea is to classify positions before doing arithmetic. A cube has exactly three painted faces only when it sits at a corner of the original solid. A cube with exactly two painted faces lies along an edge but not at either corner. A cube with exactly one painted face lies inside one of the six outer faces while avoiding its boundary. A cube with no painted faces belongs to the interior core. These four classes do not overlap, and together they account for every one of the n³ unit cubes. Keeping the classes separate prevents the most common error: counting corners again while counting edges or face interiors.
| Position class | Painted faces | Formula in n |
|---|---|---|
| Corner | 3 | 8 |
| Edge-interior | 2 | 12(n − 2) |
| Face-interior | 1 | 6(n − 2)² |
| Core (unpainted) | 0 | (n − 2)³ |
| Any painted | 1, 2, or 3 | n³ − (n − 2)³ |
The formulas in the table are the same ones documented by NRICH at the University of Cambridge for the painted cube problem, so the game's option set does not require any invented rules.
Playing Painted Cube Puzzle on a Keyboard
Keyboard play follows a single, predictable sequence for every one of the five rounds. Because the answer layout is always two columns by two rows, the same arrow-key directional model works on every round. No round introduces new keys, so the entire run can be finished without ever touching a mouse.
- Open the game in your browser and let the first round load. Note the grid size shown next to the isometric cut diagram and identify which of the five position classes the question is asking for.
- Press Tab to move focus into the answer grid. The currently focused option is marked in text rather than color alone, so it is readable without checking any highlight state.
- Use the arrow keys to move among the four possible counts. Each press of an arrow key shifts focus one cell in the two-by-two layout.
- Press Enter or Space to lock in the focused option. The round accepts the choice and either reveals the next question or, if this was the fifth round, shows the final score.
- If you change your mind, move to a different option and press Enter or Space again. One distinct incorrect option per round can be repaired freely; pressing the same wrong option a second time is deduplicated and does not consume an additional miss.
Keyboard users benefit from a stable layout, and the score, miss count, and round progress are all communicated as text rather than color alone, which means screen readers announce the same information sighted players see.
Playing Painted Cube Puzzle on a Phone or Touchscreen
Touch play uses the same answer grid as keyboard play but replaces the directional model with a single tap. The four choice buttons are rendered with a minimum touch-friendly height so they remain easy to hit on narrow phone screens, and the layout stays in two columns even on a 320-pixel-wide viewport to keep the directional pattern consistent with the keyboard route. There is no swipe gesture, no long-press, and no separate submit step — the button you tap is the answer that gets recorded.
- Open the puzzle on your phone's browser.
- Read the grid size, identify the position class the question is asking for, and (optionally) work out the answer on a mental worksheet or paper.
- Tap the button that you believe holds the correct count. A correct tap awards 200 points immediately and advances to the next round.
- If you tapped the wrong button, tap a different one. The first distinct incorrect option in a round is repairable; tapping the same wrong option again does not consume a second miss.
- If you tap a second distinct wrong option in the same round, the run deadlocks and Restart becomes the only available action. Restart resets the puzzle completely and brings you back to round one with the score at zero.
The two-by-two button layout stays in two columns on narrow screens so the directional model remains stable.
Counting by Position Class: A Worked Example for n = 4
Suppose the round asks, for a cube cut into a 4 × 4 × 4 grid of unit cubes, how many small cubes have exactly two painted faces. Using the table above, the formula is 12(n − 2). Substituting n = 4 gives 12 × (4 − 2) = 12 × 2 = 24. That is the count of edge-interior cubes, all of which sit on one of the 12 edges but away from both corners of that edge. For comparison on the same cube: there are always 8 corners, 6 × (4 − 2)² = 24 face-interior cubes, and (4 − 2)³ = 8 unpainted core cubes, which together with the 24 edge-interior cubes sum to exactly 4³ = 64 unit cubes. The any-painted class for n = 4 is 4³ − 2³ = 64 − 8 = 56, which also matches 8 + 24 + 24 = 56.
The worked example illustrates why classification comes first: the "exactly two painted faces" answer would be wrong if the corners were counted again, and would also be wrong if the face-interior squares were folded in. Running through the four formulas in order keeps the classes disjoint and the arithmetic small.
Scoring, Misses, and Restart
Each correct answer awards exactly 200 points. Five correct answers produce the exact maximum of 1,000 points, and no other score values appear in the normal route. One distinct incorrect answer in a round can be repaired on the same round; the game deduplicates repeated selections of the same wrong option so accidental double taps or double key presses do not end a run. A second distinct wrong option locks the round and the run. After a completion or a deadlock, scoring and navigation are frozen, and Restart is the only available action — it resets the puzzle completely so the five-round format starts over from question one.
This scoring and miss structure is unchanged whether you play on a phone with taps, on a desktop with a mouse, or on either device using a keyboard, so the input method has no effect on the maximum possible score.