✨ 幻方填数Magic Square Puzzle
在线幻方填数游戏:把 1 到 n² 每个数字各用一次填进方格,让每一行、每一列和两条对角线的和都相等(3 阶为 15,4 阶为 34,5 阶为 65)。题目已给出部分数字,边上实时显示每行每列的和,相等时变绿。有 3×3、4×4、5×5 三档,支持键盘输入、撤销和最快用时记录,任何正确的幻方都算完成。Magic Square Puzzle online: place each number from 1 to n² once so that every row, column and both diagonals have the same sum (15 for 3×3, 34 for 4×4, 65 for 5×5). Some numbers are given, and live sums along the edges turn green when they match. Three sizes, keyboard entry, undo and best times — any correct magic square counts.
点一个空格选中,再点下方数字填入(⌫ 清除);电脑上也可以直接输入数字、方向键移动。边上的数字是该行/列/对角线当前的和。Tap an empty cell, then a number below (⌫ clears); on a computer type digits and move with the arrow keys. The edge numbers are the current row, column and diagonal sums.
玩法说明与常见问题How to play & FAQ
「幻方填数」怎么玩?How do I play Magic Square Puzzle?
n 阶幻方使用 1~n² 每个数恰好一次,每行、每列、两条对角线的和都等于幻和 n(n²+1)/2。黑色粗体是题目给出的数字,不能修改。3 阶幻方中心一定是 5;4 阶、5 阶可以先从只差一两个数的行列入手。An n×n magic square uses each number 1…n² exactly once, and every row, column and both diagonals add up to the magic sum n(n²+1)/2. Bold numbers are given and cannot be changed. In a 3×3 square the centre is always 5; for 4×4 and 5×5 start with lines that are only one or two numbers short.
数字可以重复吗?Can numbers repeat?
不能。每个数字只能用一次,在数字键盘上已用过的数字会变淡;再填一次会把它从原来的位置挪过来。No. Each number is used once; used numbers are dimmed on the pad, and entering one again moves it from its old cell.
答案唯一吗?Is the answer unique?
不一定。只要所有行、列、对角线的和都相等且数字不重复,就算完成。Not always. Any arrangement where every row, column and diagonal adds up and no number repeats is accepted.
「幻方填数」免费吗?需要下载吗?Is Magic Square Puzzle free? Do I need to download anything?
完全免费,无需注册、下载或安装,打开网页就能玩,手机、平板和电脑都支持;游戏完全在你的浏览器本地运行,不会上传任何数据。It is completely free with no sign-up, download or install — just open the page on a phone, tablet or computer. The game runs entirely in your browser and nothing is uploaded.