About the N-Queens Math Puzzle
Welcome to the interactive N-Queens Puzzle solver. Originating as the "8 Queens Problem" proposed by chess composer Max Bezzel in 1848, this is a famous mathematical and computer science challenge. The goal is to place N chess queens on an N×N chessboard so that no two queens threaten each other.
How to Play: According to chess rules, a queen can attack any piece on the same row, column, or diagonal. Click any square to place a queen. Use the "Show Attack Zones" toggle to help visualize dangerous paths in red. You win when you successfully place a queen in every row without any conflicts!
Algorithmic Auto-Solver: Stuck? Click "Auto-Solve" and our smart backtracking algorithm will instantly calculate a valid board state. If you have already placed a few valid queens, the algorithm will attempt to solve the rest of the board around your placements!
关于 N-皇后谜题 (八皇后问题)
欢迎体验在线 N-皇后谜题 求解器。这个问题最初由国际象棋手马克斯·贝瑟尔于1848年提出(即著名的“八皇后问题”),是数学和计算机科学领域的经典逻辑挑战。游戏目标是在 N×N 的棋盘上放置 N 个皇后,使得它们互不攻击。
如何游玩: 根据国际象棋规则,皇后可以攻击同一行、同一列以及对角线上的任何棋子。点击任意方格放置皇后。开启“显示攻击范围”以红色高亮危险区域。当你成功放置所有皇后且没有冲突时,即为胜利!
算法自动求解: 遇到困难?点击“自动求解”,我们的智能回溯算法 (Backtracking) 将瞬间为您计算出合法的棋盘布局。如果您已经放置了几个合法的皇后,算法会尝试基于您的布局继续推导剩余解!
N-퀸 (8퀸) 논리 퍼즐에 대하여
인터랙티브 N-퀸 퍼즐 게임에 오신 것을 환영합니다. 1848년 체스 작곡가 막스 베첼이 제안한 "8퀸 문제"에서 유래한 이 게임은 컴퓨터 과학과 수학의 고전적인 알고리즘 퍼즐입니다. 목표는 N×N 크기의 체스판에 N개의 체스 퀸을 서로 공격할 수 없도록 배치하는 것입니다.
게임 방법: 체스 규칙에 따라 퀸은 가로, 세로, 대각선 방향으로 이동하고 공격할 수 있습니다. 빈 칸을 클릭하여 퀸을 배치하세요. "공격 범위 보기"를 켜면 위험한 구역이 붉은색으로 표시됩니다. 충돌 없이 모든 퀸을 배치하면 승리합니다!
알고리즘 자동 풀이: 막히셨나요? "자동 풀이"를 클릭하면 지능형 백트래킹(Backtracking) 알고리즘이 즉시 유효한 배치를 계산합니다. 이미 규칙에 맞게 배치한 퀸이 있다면, 알고리즘이 그 상태를 유지하며 남은 퀸의 위치를 찾아냅니다!