Gravity Shift is a free browser game of 3D four in a row, played inside a 4×4×4 cube of 64 cells. Instead of dropping a piece, you can spend a turn rotating the whole cube 90°, which points gravity at a new face and drops every piece on the board all over again. It went online on 13 September 2026. No account, no install, nothing to buy. A game runs about five minutes. This article is written by the person who built it, so every number below comes from running the game’s own logic rather than from an estimate. You can start straight away on the Gravity Shift app page.
Sponsored
What Is Gravity Shift? 3D Four in a Row Where You Can Rotate the Board
Gravity Shift is 3D four in a row on a 4×4×4 cube, with one move added: rotate the board 90° so that gravity points at a different face. You move first with the cyan pieces and the CPU moves second with the magenta ones. Pieces carry a pattern as well as a colour — yours have a ring, the CPU’s have a cross — so they can be told apart without relying on colour.
A turn in Gravity Shift offers exactly two choices. Drop one piece through any of the 16 entry ports on the top face, or rotate the board and change the direction of gravity. Dropping behaves like flat four in a row: the piece falls to the far end of its column. Rotating is what the game is built around. The face you choose becomes the new floor, and every piece already on the board falls again in that direction.

- Price: free. No account, no login, no install
- Players: one, against the CPU (three levels)
- Length: about five minutes a game
- Runs on: mobile browsers on iPhone and Android, and desktop browsers
- Interface language: Japanese, although every main button also carries a Latin label (START, DROP, SHIFT, SLICE). An English glossary of the whole interface is further down this article
What Are the Rules of 3D Four in a Row? 64 Cells and 76 Winning Lines
A 4×4×4 board has 76 winning lines: 48 straight along the axes, 24 diagonals lying inside a plane, and 4 diagonals running through the body of the cube. Get four of your own pieces onto any one of those 76 lines and you win. The count was produced by generating every line in all 13 directions from the board definition Gravity Shift actually uses.
Flat four in a row is played on 7 columns by 6 rows, 42 cells, and the same method of counting gives it 69 winning lines. Per cell, the flat board averages 6.57 lines and the cube averages 4.75, so by that measure the cube is the thinner board. The cube still reads harder, because the 24 in-plane diagonals and the 4 body diagonals vanish behind nearer pieces on a 3D screen.
The 64 cells split into two groups by how many lines pass through them. Counted out, the 8 cells at the centre of the cube and the 8 corner cells sit on 7 lines each, and the other 48 cells sit on 4 lines each. All four body diagonals pass through 2 corners and 2 centre cells and nothing else. The CPU’s evaluation function awards points for the 8 centre cells only. The corners get no bonus.
Sponsored
What Happens When You Rotate the Board? Order Is Kept, Position Is Not
Rotating in Gravity Shift makes the face you chose the new floor, and every piece falls towards it. The order of pieces within a column survives the move; the cell each piece ends up in does not. There are always four directions to choose from, taken perpendicular to the current gravity axis. Turning the board upside down is not offered.
“Order is kept” means the front-to-back order inside each new column is unchanged. It does not mean pieces that shared a column stay together. A single column stacked four high from floor to ceiling, rotated 90°, splits into four separate columns standing side by side on the new floor. The old floor becomes a wall, so a shape built along the floor scatters into a horizontal row the instant the board turns.
I measured how much a rotation actually changes by pulling the game logic out into Node on its own. Across 4,284 positions holding 12 to 21 pieces, tried in all four directions for 17,136 cases in total, one rotation moved 8.53 pieces on average — 51.6% of the pieces on the board. Half the board is rewritten every time it turns.
Gravity Shift has no luck in it, and both sides can see the whole board, which is the same construction as Ultimate Tic Tac Toe: Rules and How to Actually Win. The difference is that a move in Gravity Shift can relocate the pieces themselves. Nothing built last turn is guaranteed to still be standing next turn.
What Limits Are on Rotation? You Cannot Rotate Twice, and a Double Line Loses
Rotation in Gravity Shift carries two limits: the same player cannot rotate on two consecutive turns, and if a rotation completes four in a row for both sides at once, the player who rotated loses. Without the first limit, a player could rotate forever and never let the opponent act. Without the second, a player could ignore the opponent’s lines as long as their own landed.
| Result of the rotation | Ruling |
|---|---|
| Only your own pieces line up | You win |
| Only the opponent’s pieces line up | The opponent wins — your own move handed it to them |
| Both sides line up at the same time | The player who rotated loses |
| No column can take a piece | Rotating twice in a row is allowed, to avoid a dead position |
| The same position appears three times | Draw |
I measured how often each ruling comes up. In the same 17,136 cases, 7.34% of directions completed a line for the rotating player, 4.62% completed one for the opponent only, 1.03% completed both at once, and the remaining 87.00% completed nothing. Counted per position rather than per direction, 18.8% of the 4,284 positions held at least one direction that loses on the spot, and 24.0% held a direction that wins. Roughly one position in five hides a direction you must not touch.
The same ruling covers the special blocks. If a weight or a blast shifts pieces and both sides line up together, the player who made that move loses. Every move that relocates pieces is judged the same way. For the three-fold repetition draw, a position means the 64 cells plus the current direction of gravity plus whose turn it is. Identical piece placement on a different floor is a different position, so a draw cannot be forced by rotating away and back.
The rotation limit doubles as a tactic. The turn immediately after your opponent rotates is a turn on which they cannot rotate. Anything built during that turn survives at least one exchange. The reverse holds too: right after you rotate, the right to rotate returns to the opponent, so half-built lines near the floor are hard to keep.
Sponsored
How Do You Read a Move That Rewrites Half the Board?
Before a rotation is committed, Gravity Shift draws the resulting board as ghosts — hollow spheres sitting in the cells the pieces would land in. Choose a direction and the outcome appears before anything happens. Alongside it, the game prints how many lines each side would be one piece away from completing after the turn. The point is to stop the player from having to hold half a board in their head.
Showing the result before the move is committed is the same device used in Turn-Based Tower Defense: Three Dice, Four Slots, No Building, where picking one die scratches a four-tier forecast onto the wall before you commit to it.
The display changes which move gets picked. Playing a real game for this article, I reached move 17 and ran all four directions through the ghost preview one at a time. The number of lines the CPU would be one piece away from completing came out at 1 for left-becomes-floor (−X), 0 for right (+X), 2 for back (−Z) and 1 for front (+Z). Same position, four very different things to hand over.
The current direction of gravity sits in a small cube at the top left of the screen. The face glowing cyan is the current floor, and the amber dashed face is the floor it was until the last rotation. A line of text under it records who rotated last and which way. The board alone will not tell you whether you or the CPU turned it three moves ago, so it is kept on screen as history.
The other aid is SLICE, the cross-section view. In 3D the near pieces hide the far ones, so SLICE lays the four layers out as flat grids side by side. The same cell position is the same column in every layer, so you can tap a cross-section and drop straight into the column you meant. The switch sits at the top of the screen.

What Do the Three Special Blocks Do? Weight, Anchor and Blast
Gravity Shift has three special blocks — weight (重石), anchor (固定) and blast (爆破) — and each side may use two per game in total, counted across all types. You choose which types are in play on the title screen, and any type switched off is denied to the CPU as well. Special blocks carry an amber engraving, so they stay identifiable on the board.
| Special block | What it does | What it is for |
|---|---|---|
| Weight (重石, omoshi) | Cuts in at the far end of the column and pushes each piece above it up by one. It does not pass through an anchor block | Lifting the opponent’s pieces to knock a line out of alignment |
| Anchor (固定, kotei) | Stays exactly where it is, even when the board rotates | Building one foothold that a rotation cannot scatter |
| Blast (爆破, bakuha) | Destroys the pieces in the six cells around where it lands and destroys itself; the remaining pieces then fall again | Breaking up a line the opponent is one piece from completing |
The anchor block is also excluded from the routine that settles pieces under gravity. When everything else falls again, the cell holding an anchor keeps it, and the gap that opens up underneath stays empty — no piece drops into it. It is the one piece in Gravity Shift that a rotation cannot move.
How Were the CPU and the Daily Puzzle Built?
The CPU is negamax with alpha-beta pruning and iterative deepening. Easy reads one ply and plays a roughly random move about one turn in three, Normal reads three ply, and Strong reads up to six ply within a 1.2-second budget per move. The search runs in a Web Worker, so the board keeps rendering while the CPU thinks.
The same search-and-Web-Worker arrangement is used in Build-and-Climb Board Game Where the Levels Have an Owner, where a turn offers about 60 legal moves on average, so anything past depth 3 is narrowed to the 30 best-scoring moves.
I measured the gap between the three levels with self-play, special blocks switched off. Strong beat Normal 28–12 over 40 games, Normal beat Easy 59–1 over 60 games, and Strong beat Easy 40–0 over 40 games. A Strong-versus-Normal game ran 25.8 moves on average, between 16 and 40, and rotation accounted for 6.6% of all moves played. That is under one rotation in every ten moves: the engine treats it as a trump card. Across all 140 games, not one ended on the double-line ruling. An opponent who can read the preview does not step on that direction.
There is a deliberate gap in the search. For speed, special-block moves are not generated inside the search tree, which on its own would leave the CPU blind to a one-move win by a weight push or a blast re-settle. So each candidate move at the root gets a separate check: after this move, can the opponent win next turn with a move that includes a special block? Moves that fail it are scored as losses. Special-block moves also carry a small penalty, to stop the CPU spending both of them in the opening.
The daily puzzle, “win with a single rotation” (1回の回転で勝て, ikkai no kaiten de kate), builds a position from a seed derived from the date, then tries all four directions to confirm the answer before serving it. Positions hold 12 to 21 pieces and never contain a line that is already complete. A position is accepted only when exactly one direction wins and at least one direction loses on the spot. Over 90 generated days, all 90 met the condition: 80 days carried one losing direction, 9 days carried two and 1 day carried three. The number of seed advances needed to find a qualifying position had a median of 22 and a maximum of 142.
Checking a daily puzzle by the numbers before publishing it is the same approach taken in 7 Advanced Sudoku Techniques After X-Wing, Ranked by Real Frequency, where each technique was run against 6,000 puzzles first.
The daily star rating measures reading accuracy, not whether you eventually got there. Three stars means solving it on the first attempt having ghost-previewed exactly one direction. Two stars means solving it on the first attempt after checking more. One star means solving it after a retry. Previewing all four directions and then choosing the right one stops at two stars. Clearing the puzzle extends a streak, and the result can be shared with the answer hidden.
Rotating Four-in-a-Row Already Exists in 2D: What Is New Here
Rotating the board to change gravity in four in a row is not a new idea, and English-language versions of it already exist. The Japanese version of this article reports that searching in Japanese for 「立体四目並べ 重力 盤を回す 回転 ゲーム」 returned nothing. Searching the same idea in English gives a different picture, so here are the three closest ones I found.
- Gravity Wins (Android, 2011) rotates the board itself, 90° every four or five turns, rather than on a player’s choice. A 2011 review of Gravity Wins notes that “the board won’t rotate for the same player twice in a row”, and that a counter shows how many turns are left before it happens.
- Flippin’ Fours (itch.io) makes rotation a move you choose instead of dropping a piece, using buttons to the left and right of the board. Its page states that “if two 4-in-a-rows are completed at once, it’s a tie”.
- Connect 4: Gravity Flip Edition (itch.io) lets you “rotate the board at any time, and all the pieces fall according to the new gravity”. Its page states that if both players line up at once, “the one who did the rotation wins”.
Those two tie-break rules are worth setting beside Gravity Shift’s, because all three answer the same question and give three different answers. Flippin’ Fours calls a double line a tie. Connect 4: Gravity Flip Edition awards it to the player who rotated. Gravity Shift gives that player the loss, which is the strictest of the three, and it is the reason the ghost preview is a necessity here rather than a convenience.
What I did not find, in either language, was a version that does this inside a 4×4×4 cube. That is where the numbers change: a rotation here moves 51.6% of the pieces on the board, and 18.8% of the measured positions contain a direction that loses immediately. On a flat 7-by-6 grid, a rotation reshuffles a board you can still take in at a glance. Inside a cube, the in-plane and body diagonals that decide the game sit behind other pieces, which is why the ghost preview and the SLICE view exist at all.
The Interface Is in Japanese: What Each Button Says
Gravity Shift’s interface is Japanese only, with no English toggle. It is still playable without reading Japanese, because every main control carries a Latin label above its Japanese text — START, DAILY, MANUAL, DROP, SHIFT, CONFIRM, 3D, SLICE — and each rotation button is stamped with an axis code (−X, +X, −Y, +Y, −Z, +Z). The two tables below cover what those labels do not.
Three further things do not depend on language at all. Pieces are told apart by pattern as well as colour, yours carrying a ring and the CPU’s a cross. The ghost preview is a picture of the resulting board. The reach counts after a rotation are printed as digits either side of あなた (anata, you) and CPU.
| On screen | Romaji | What it does |
|---|---|---|
| START / 対局を始める | taikyoku o hajimeru | Start a game against the CPU |
| DAILY / 1回の回転で勝て | ikkai no kaiten de kate | Today’s puzzle: win with a single rotation |
| MANUAL / 遊び方 | asobikata | Rules, tips and FAQ (in Japanese) |
| CPU LEVEL: 01 やさしい / 02 ふつう / 03 つよい | yasashii / futsū / tsuyoi | Easy / Normal / Strong. The 01–03 numbering lets you pick without reading |
| SPECIAL BLOCKS: 重石 / 固定 / 爆破 | omoshi / kotei / bakuha | Weight / anchor / blast. Tap to switch each type on or off for the game |
| DROP / 投下 | tōka | Drop a piece into the column you have aimed at |
| SHIFT / 盤を回す | ban o mawasu | Open the rotation preview |
| 左が下 / 右が下 / 奥が下 / 手前が下, each with an axis code | hidari / migi / oku / temae ga shita | The four rotation directions: “left / right / back / front becomes the floor”. The word follows your camera angle, the axis code does not |
| CONFIRM / この向きに回す | kono muki ni mawasu | Commit the rotation you just previewed |
| やめる | yameru | Cancel the rotation and go back to the board |
| 3D / 立体 and SLICE / 断面 | rittai / danmen | The 3D view, and the four-layer cross-section view |
| やり直す (daily puzzle only) | yarinaosu | Retry today’s puzzle |
| ABORT / 中断する and 続ける | chūdan suru / tsuzukeru | Quit to the title screen, or carry on playing |
| On screen | Romaji | What it means |
|---|---|---|
| あなたの番 | anata no ban | Your turn. TURN 01 beside it counts the move number |
| GRAVITY −Y / まだ回転していない | mada kaiten shite inai | The current gravity axis, and “nobody has rotated yet” |
| 向きを選ぶと、回した後の盤面を先に表示 | muki o erabu to, mawashita ato no banmen o saki ni hyōji | “Pick a direction and the board after the rotation is shown first” |
| 回した後のリーチ あなた 1・CPU 2 | mawashita ato no rīchi | After this rotation you would be one piece away on 1 line, the CPU on 2 |
| この向きで あなたの4つ並びが完成 | kono muki de anata no yotsu narabi ga kansei | This direction completes your four in a row (printed in cyan) |
| CPU の4つ並びが完成してしまう | CPU no yotsu narabi ga kansei shite shimau | This direction completes the CPU’s four in a row (printed in magenta) |
| 両方が同時に並ぶ → 回した側の負け | ryōhō ga dōji ni narabu → mawashita gawa no make | Both sides line up at once, so the player who rotates loses |
| 駒が重なって読みにくいときは SLICE で平面表示 | koma ga kasanatte yominikui toki wa SLICE de heimen hyōji | “When pieces overlap and the board is hard to read, switch to SLICE for the flat view” |
The rules panel behind MANUAL, and the how-to-play section on the Gravity Shift app page, are both written in Japanese only.
How to Play Gravity Shift: Price, Saves and Where It Runs
Gravity Shift is free, with no account and no install. Your win-loss record and your daily-puzzle streak are stored inside your own browser. Nothing is sent to a server, so those records do not follow you to another device or another browser, and clearing site data clears them.
- Gravity Shift — 3D four in a row on a 4×4×4 cube, with board rotation
- All the web apps and games published on rinblog
On a first visit, a tutorial walks you through five moves on a real board: aiming, dropping, the cross-section view, the rotation preview, and winning by rotating. It can be skipped, and restarted at any time from the how-to-play panel.
Every figure in this article was produced by running Gravity Shift’s own logic. One thing is not settled. The daily puzzle is selected on the rule that exactly one rotation wins, but difficulty is not levelled between days. Two puzzles both rated three stars can differ a great deal: some are visible at a glance, and some only resolve after ghost-previewing all four directions. If a day feels off, that is material for revising the selection rule.