<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>五子棋 - 开发者: oldnet</title> <script src="https://cdn.tailwindcss.com"></script> <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- 配置Tailwind自定义颜色和字体 --> <script> tailwind.config = { theme: { extend: { colors: { primary: '#8B5A2B', secondary: '#D2B48C', board: '#E6B89C', black: '#000000', white: '#FFFFFF', accent: '#C19A6B', hint: '#FFD700', hint2: '#4CAF50', hint3: '#2196F3' }, fontFamily: { sans: ['Inter', 'system-ui', 'sans-serif'], }, }, } } </script> <style type="text/tailwindcss"> @layer utilities { .content-auto { content-visibility: auto; } .board-shadow { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1); } .pulse-animation { animation: pulse 1.5s infinite; } @keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } } .pulse-slow { animation: pulse 2s infinite; } .win-particle { position: absolute; pointer-events: none; background-color: currentColor; border-radius: 50%; } .shine-effect { position: absolute; top: -100%; left: -100%; width: 200%; height: 200%; background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100% ); transform: rotate(30deg); animation: shine 2s forwards; } @keyframes shine { 0% { transform: rotate(30deg) translate(-100%, -100%); } 100% { transform: rotate(30deg) translate(100%, 100%); } } .effect-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; } } </style> </head> <body class="bg-gray-100 wood-pattern min-h-screen flex flex-col items-center justify-center p-4 font-sans"> <!-- 页面标题和开发者信息 --> <header class="text-center mb-6"> <h1 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-primary mb-2">五子棋</h1> <div class="flex items-center justify-center gap-3 text-gray-600"> <span class="flex items-center gap-1"> <i class="fa fa-code" aria-hidden="true"></i> <a href="https://www.luogu.com.cn/user/713602" target="_blank" class="hover:text-primary transition-colors"> 开发者: oldnet (713602) </a> </span> </div> </header> <main class="flex flex-col md:flex-row gap-8 items-center justify-center w-full max-w-5xl"> <!-- 游戏信息面板 --> <div class="w-full md:w-64 bg-white rounded-xl shadow-lg p-5 flex flex-col gap-4"> <div class="text-center"> <h2 class="text-lg font-semibold text-gray-700 mb-2">游戏状态</h2> <div id="status" class="py-2 px-4 bg-accent/10 rounded-lg text-primary font-medium"> 黑方先行 </div> </div> <div class="flex justify-center gap-4 py-2"> <div class="flex flex-col items-center"> <div class="w-8 h-8 rounded-full bg-black mb-1"></div> <span class="text-sm text-gray-600">黑方</span> </div> <div class="flex flex-col items-center"> <div class="w-8 h-8 rounded-full bg-white border-2 border-gray-300 mb-1"></div> <span class="text-sm text-gray-600">白方</span> </div> </div> <div class="space-y-3"> <button id="restart-btn" class="w-full py-2.5 bg-primary hover:bg-primary/90 text-white rounded-lg transition-all flex items-center justify-center gap-2 shadow-md hover:shadow-lg"> <i class="fa fa-refresh" aria-hidden="true"></i> <span>重新开始</span> </button> <button id="undo-btn" class="w-full py-2.5 bg-gray-200 hover:bg-gray-300 text-gray-700 rounded-lg transition-all flex items-center justify-center gap-2 shadow-sm hover:shadow"> <i class="fa fa-undo" aria-hidden="true"></i> <span>悔棋</span> </button> <button id="hint-btn" class="w-full py-2.5 bg-hint/80 hover:bg-hint text-gray-800 rounded-lg transition-all flex items-center justify-center gap-2 shadow-sm hover:shadow"> <i class="fa fa-lightbulb-o" aria-hidden="true"></i> <span>落子提示</span> </button> </div> <div class="mt-auto pt-3 border-t border-gray-100"> <h3 class="text-sm font-semibold text-gray-500 mb-2">提示说明</h3> <ul class="text-xs text-gray-600 space-y-1"> <li>• <span class="inline-block w-3 h-3 rounded-full bg-red-500 align-middle mr-1"></span> 必胜点</li> <li>• <span class="inline-block w-3 h-3 rounded-full bg-hint align-middle mr-1"></span> 最佳进攻点</li> <li>• <span class="inline-block w-3 h-3 rounded-full bg-hint2 align-middle mr-1"></span> 重要防守点</li> <li>• <span class="inline-block w-3 h-3 rounded-full bg-hint3 align-middle mr-1"></span> 发展潜力点</li> </ul> </div> </div> <!-- 棋盘区域 --> <div class="relative"> <div class="absolute -inset-4 bg-primary rounded-2xl board-shadow transform rotate-1"></div> <div class="absolute -inset-4 bg-primary rounded-2xl board-shadow transform -rotate-1"></div> <div class="relative" style="z-index: 10;"> <!-- 棋盘 --> <div id="board" class="relative bg-board rounded-xl board-shadow overflow-hidden border-8 border-primary"> <!-- 棋盘将由JS动态生成 --> </div> <!-- 特效容器 --> <div id="effect-container" class="effect-container" style="z-index: 30;"></div> </div> </div> </main> <!-- 胜利提示弹窗 --> <div id="win-modal" class="fixed inset-0 bg-black/50 flex items-center justify-center z-50 hidden"> <div class="bg-white rounded-xl p-8 max-w-md w-full mx-4 text-center shadow-2xl transform transition-all"> <div id="winner-text" class="text-2xl font-bold mb-6 text-primary"></div> <button id="modal-restart" class="py-3 px-8 bg-primary hover:bg-primary/90 text-white rounded-lg transition-all font-medium shadow-md hover:shadow-lg"> 再来一局 </button> </div> </div> <footer class="mt-8 text-center text-gray-500 text-sm"> <p>© 2025 五子棋游戏 | <a href="https://www.luogu.com.cn/user/713602" target="_blank" class="hover:text-primary transition-colors">开发者: oldnet (713602)</a></p> </footer> <script> document.addEventListener('DOMContentLoaded', () => { // 游戏配置 const SIZE = 15; let currentPlayer = 'black'; let board = Array(SIZE).fill().map(() => Array(SIZE).fill(null)); let moveHistory = []; let gameActive = true; let cellSize; let hintElements = []; // DOM元素 const boardElement = document.getElementById('board'); const statusElement = document.getElementById('status'); const restartButton = document.getElementById('restart-btn'); const undoButton = document.getElementById('undo-btn'); const hintButton = document.getElementById('hint-btn'); const winModal = document.getElementById('win-modal'); const winnerText = document.getElementById('winner-text'); const modalRestartButton = document.getElementById('modal-restart'); const effectContainer = document.getElementById('effect-container'); // 评分权重配置 const SCORE_WEIGHTS = { win: 100000, fourOpen: 10000, fourSemi: 5000, threeOpen: 1000, threeSemi: 500, twoOpen: 100, twoSemi: 50, centerControl: 10, adjacentBonus: 5 }; // 初始化棋盘 function initializeBoard() { cellSize = setBoardSize(); boardElement.innerHTML = ''; clearAllEffects(); hintElements = []; // 创建棋盘线 // 横线 for (let i = 0; i < SIZE; i++) { const line = document.createElement('div'); line.classList.add('absolute', 'bg-primary/70'); line.style.height = '1px'; line.style.width = '100%'; line.style.top = `${i * cellSize}px`; line.style.left = '0'; boardElement.appendChild(line); } // 竖线 for (let j = 0; j < SIZE; j++) { const line = document.createElement('div'); line.classList.add('absolute', 'bg-primary/70'); line.style.width = '1px'; line.style.height = '100%'; line.style.left = `${j * cellSize}px`; line.style.top = '0'; boardElement.appendChild(line); } // 创建点击区域 for (let i = 0; i < SIZE; i++) { for (let j = 0; j < SIZE; j++) { const clickArea = document.createElement('div'); clickArea.classList.add('absolute', 'cursor-pointer', 'hover:bg-accent/20', 'rounded-full', 'transition-all'); clickArea.style.width = `${cellSize * 0.8}px`; clickArea.style.height = `${cellSize * 0.8}px`; clickArea.style.left = `${j * cellSize - cellSize * 0.4}px`; clickArea.style.top = `${i * cellSize - cellSize * 0.4}px`; clickArea.dataset.row = i; clickArea.dataset.col = j; clickArea.style.zIndex = '25'; clickArea.addEventListener('click', () => handleCellClick(i, j)); boardElement.appendChild(clickArea); } } addSpecialPoints(); } // 设置棋盘尺寸 function setBoardSize() { const containerWidth = window.innerWidth; let size; if (containerWidth < 640) { size = Math.floor((containerWidth - 60) / SIZE); } else { size = 30; } const boardDim = size * (SIZE - 1); boardElement.style.width = `${boardDim}px`; boardElement.style.height = `${boardDim}px`; effectContainer.style.width = `${boardDim}px`; effectContainer.style.height = `${boardDim}px`; return size; } // 添加天元和星位 function addSpecialPoints() { const points = [ [3, 3], [3, 7], [3, 11], [7, 3], [7, 7], [7, 11], [11, 3], [11, 7], [11, 11] ]; points.forEach(([row, col]) => { const point = document.createElement('div'); point.classList.add('absolute', 'rounded-full', 'bg-primary/80', 'z-10'); point.style.width = `${cellSize / 8}px`; point.style.height = `${cellSize / 8}px`; point.style.left = `${col * cellSize}px`; point.style.top = `${row * cellSize}px`; point.style.transform = 'translate(-50%, -50%)'; boardElement.appendChild(point); }); } // 处理格子点击 function handleCellClick(row, col) { if (!gameActive || board[row][col] !== null) { return; } // 清除提示 clearHints(); // 记录落子历史 moveHistory.push([row, col, currentPlayer]); // 更新棋盘状态 board[row][col] = currentPlayer; const piece = placePiece(row, col, currentPlayer); // 检查是否获胜 if (checkWin(row, col, currentPlayer)) { gameActive = false; const winner = currentPlayer === 'black' ? '黑方' : '白方'; statusElement.textContent = `${winner}获胜!`; createWinEffect(row, col); showWinModal(winner); return; } // 检查是否平局 if (checkDraw()) { gameActive = false; statusElement.textContent = '平局!'; showWinModal('平局'); return; } // 切换玩家 currentPlayer = currentPlayer === 'black' ? 'white' : 'black'; statusElement.textContent = `${currentPlayer === 'black' ? '黑方' : '白方'}回合`; } // 放置棋子 function placePiece(row, col, player) { const piece = document.createElement('div'); piece.classList.add( 'absolute', 'rounded-full', 'shadow-md', 'z-20', 'transition-transform' ); if (player === 'black') { piece.classList.add('bg-black'); } else { piece.classList.add('bg-white', 'border', 'border-gray-300'); } piece.style.width = `${cellSize * 0.8}px`; piece.style.height = `${cellSize * 0.8}px`; piece.style.left = `${col * cellSize}px`; piece.style.top = `${row * cellSize}px`; piece.style.transform = 'translate(-50%, -50%) scale(0)'; piece.dataset.row = row; piece.dataset.col = col; boardElement.appendChild(piece); // 出现动画 setTimeout(() => { piece.style.transform = 'translate(-50%, -50%) scale(1)'; }, 10); // 悬停效果 piece.addEventListener('mouseenter', () => { piece.style.transform = 'translate(-50%, -50%) scale(1.05)'; }); piece.addEventListener('mouseleave', () => { piece.style.transform = 'translate(-50%, -50%) scale(1)'; }); return piece; } // 检查获胜条件 function checkWin(row, col, player) { const directions = [ [0, 1], // 水平 [1, 0], // 垂直 [1, 1], // 对角线 [1, -1] // 反对角线 ]; for (const [dx, dy] of directions) { let count = 1; let winningPieces = [[row, col]]; // 正向检查 for (let i = 1; i < 5; i++) { const newRow = row + i * dx; const newCol = col + i * dy; if (newRow >= 0 && newRow < SIZE && newCol >= 0 && newCol < SIZE && board[newRow][newCol] === player) { count++; winningPieces.push([newRow, newCol]); } else { break; } } // 反向检查 for (let i = 1; i < 5; i++) { const newRow = row - i * dx; const newCol = col - i * dy; if (newRow >= 0 && newRow < SIZE && newCol >= 0 && newCol < SIZE && board[newRow][newCol] === player) { count++; winningPieces.push([newRow, newCol]); } else { break; } } if (count >= 5) { highlightWinningPieces(winningPieces); return true; } } return false; } // 高亮显示获胜的棋子 function highlightWinningPieces(pieces) { pieces.forEach(([row, col]) => { const pieceElements = boardElement.querySelectorAll('div[class*="rounded-full"][class*="bg-black"], div[class*="rounded-full"][class*="bg-white"]'); const piece = Array.from(pieceElements).find(p => parseInt(p.dataset.row) === row && parseInt(p.dataset.col) === col ); if (piece) { const shine = document.createElement('div'); shine.classList.add('shine-effect'); piece.appendChild(shine); } }); } // 创建胜利特效 function createWinEffect(row, col) { const x = col * cellSize; const y = row * cellSize; for (let i = 0; i < 80; i++) { const particle = document.createElement('div'); particle.classList.add('win-particle'); const size = Math.random() * 8 + 2; particle.style.width = `${size}px`; particle.style.height = `${size}px`; const hue = Math.random() * 60; particle.style.color = `hsl(${hue}, 100%, 50%)`; particle.style.left = `${x}px`; particle.style.top = `${y}px`; particle.style.transform = 'translate(-50%, -50%)'; effectContainer.appendChild(particle); const angle = Math.random() * Math.PI * 2; const distance = Math.random() * 120 + 60; const duration = Math.random() * 1000 + 1000; particle.animate([ { transform: 'translate(-50%, -50%) scale(0)' }, { transform: `translate(calc(-50% + ${Math.cos(angle) * distance}px), calc(-50% + ${Math.sin(angle) * distance}px)) scale(1)` }, { transform: `translate(calc(-50% + ${Math.cos(angle) * distance * 1.5}px), calc(-50% + ${Math.sin(angle) * distance * 1.5}px)) scale(0)` } ], { duration, easing: 'cubic-bezier(0.1, 0.8, 0.9, 1)' }); setTimeout(() => { if (particle.parentNode === effectContainer) { particle.remove(); } }, duration); } } // 清除所有特效 function clearAllEffects() { effectContainer.innerHTML = ''; } // 检查平局 function checkDraw() { for (let i = 0; i < SIZE; i++) { for (let j = 0; j < SIZE; j++) { if (board[i][j] === null) { return false; } } } return true; } // 显示胜利弹窗 function showWinModal(winner) { winnerText.textContent = winner === '平局' ? '游戏结束,平局!' : `恭喜,${winner}获胜!`; winModal.classList.remove('hidden'); winModal.classList.add('flex'); const modalContent = winModal.querySelector('div'); modalContent.style.transform = 'scale(0.8)'; modalContent.style.opacity = '0'; setTimeout(() => { modalContent.style.transition = 'transform 0.3s ease, opacity 0.3s ease'; modalContent.style.transform = 'scale(1)'; modalContent.style.opacity = '1'; }, 10); } // 隐藏胜利弹窗 function hideWinModal() { winModal.classList.remove('flex'); winModal.classList.add('hidden'); } // 重新开始游戏 function restartGame() { board = Array(SIZE).fill().map(() => Array(SIZE).fill(null)); currentPlayer = 'black'; moveHistory = []; gameActive = true; statusElement.textContent = '黑方先行'; initializeBoard(); hideWinModal(); } // 悔棋 function undoMove() { if (moveHistory.length === 0 || !gameActive) { return; } clearHints(); const [row, col, player] = moveHistory.pop(); board[row][col] = null; const pieces = boardElement.querySelectorAll('div[class*="rounded-full"][class*="bg-black"], div[class*="rounded-full"][class*="bg-white"]'); const lastPiece = Array.from(pieces).find(p => parseInt(p.dataset.row) === row && parseInt(p.dataset.col) === col ); if (lastPiece) { lastPiece.style.transform = 'translate(-50%, -50%) scale(0)'; setTimeout(() => { lastPiece.remove(); }, 200); } currentPlayer = player; statusElement.textContent = `${currentPlayer === 'black' ? '黑方' : '白方'}回合`; } // 显示落子提示 function showHints() { if (!gameActive) return; clearHints(); const moveScores = evaluateAllMoves(); moveScores.sort((a, b) => b.score - a.score); const topMoves = moveScores.slice(0, 3); topMoves.forEach((move, index) => { const { row, col, isWinningMove } = move; const hintElement = document.createElement('div'); hintElement.classList.add('absolute', 'rounded-full', 'z-22'); hintElement.style.width = index === 0 ? `${cellSize * 0.6}px` : `${cellSize * 0.5}px`; hintElement.style.height = index === 0 ? `${cellSize * 0.6}px` : `${cellSize * 0.5}px`; hintElement.style.left = `${col * cellSize}px`; hintElement.style.top = `${row * cellSize}px`; hintElement.style.transform = 'translate(-50%, -50%)'; hintElement.style.opacity = index === 0 ? '0.8' : '0.7'; if (isWinningMove) { hintElement.classList.add('bg-red-500', 'pulse-animation'); } else if (index === 0) { hintElement.classList.add('bg-hint', 'pulse-animation'); } else if (move.isBlockingMove) { hintElement.classList.add('bg-hint2', 'pulse-slow'); } else { hintElement.classList.add('bg-hint3', 'pulse-slow'); } boardElement.appendChild(hintElement); hintElements.push(hintElement); }); } // 清除所有提示 function clearHints() { hintElements.forEach(el => el.remove()); hintElements = []; } // 评估所有可能的落子点 function evaluateAllMoves() { const moveScores = []; const opponent = currentPlayer === 'black' ? 'white' : 'black'; // 查找当前玩家的必胜点 const winningMoves = findWinningMoves(currentPlayer); winningMoves.forEach(([row, col]) => { moveScores.push({ row, col, score: SCORE_WEIGHTS.win, isWinningMove: true, isBlockingMove: false }); }); // 查找需要防守的点 const opponentWinningMoves = findWinningMoves(opponent); opponentWinningMoves.forEach(([row, col]) => { const existing = moveScores.find(m => m.row === row && m.col === col); if (!existing) { moveScores.push({ row, col, score: SCORE_WEIGHTS.win * 0.9, isWinningMove: false, isBlockingMove: true }); } }); // 评估其他落子点 for (let i = 0; i < SIZE; i++) { for (let j = 0; j < SIZE; j++) { if (board[i][j] !== null) continue; const alreadyEvaluated = moveScores.some(m => m.row === i && m.col === j); if (alreadyEvaluated) continue; const score = calculateMoveScore(i, j, currentPlayer, opponent); const isBlockingMove = isImportantDefensiveMove(i, j, currentPlayer, opponent); moveScores.push({ row: i, col: j, score, isWinningMove: false, isBlockingMove }); } } return moveScores; } // 查找能直接获胜的落子点 function findWinningMoves(player) { const winningMoves = []; for (let i = 0; i < SIZE; i++) { for (let j = 0; j < SIZE; j++) { if (board[i][j] === null) { board[i][j] = player; const isWinningMove = checkWin(i, j, player); board[i][j] = null; if (isWinningMove) { winningMoves.push([i, j]); } } } } return winningMoves; } // 计算落子点的评分 function calculateMoveScore(row, col, player, opponent) { let score = 0; board[row][col] = player; const attackPatterns = evaluatePatterns(row, col, player); score += calculatePatternScore(attackPatterns); const opponentScoreBefore = evaluateOpponentScore(row, col, opponent); board[row][col] = opponent; const opponentScoreAfter = evaluatePatterns(row, col, opponent); board[row][col] = null; const defenseValue = calculatePatternScore(opponentScoreAfter) - calculatePatternScore(opponentScoreBefore); score += defenseValue * 0.7; const centerDistance = Math.sqrt(Math.pow(row - 7, 2) + Math.pow(col - 7, 2)); score += SCORE_WEIGHTS.centerControl * (1 - centerDistance / 14); const adjacentFriendly = countAdjacentPieces(row, col, player); score += adjacentFriendly * SCORE_WEIGHTS.adjacentBonus; return score; } // 评估棋型 function evaluatePatterns(row, col, player) { const directions = [ [0, 1], [1, 0], [1, 1], [1, -1] ]; const patterns = { win: 0, fourOpen: 0, fourSemi: 0, threeOpen: 0, threeSemi: 0, twoOpen: 0, twoSemi: 0 }; for (const [dx, dy] of directions) { const result = analyzeLine(row, col, dx, dy, player); if (result.count >= 5) { patterns.win++; } else if (result.count === 4) { if (result.openEnds >= 2) patterns.fourOpen++; else if (result.openEnds === 1) patterns.fourSemi++; } else if (result.count === 3) { if (result.openEnds >= 2) patterns.threeOpen++; else if (result.openEnds === 1) patterns.threeSemi++; } else if (result.count === 2) { if (result.openEnds >= 2) patterns.twoOpen++; else if (result.openEnds === 1) patterns.twoSemi++; } } return patterns; } // 分析一条线上的棋子情况 function analyzeLine(row, col, dx, dy, player) { let count = 1; let openEnds = 0; for (let dir = -1; dir <= 1; dir += 2) { let i = 1; let blocked = false; while (true) { const newRow = row + dir * i * dx; const newCol = col + dir * i * dy; if (newRow < 0 || newRow >= SIZE || newCol < 0 || newCol >= SIZE) { blocked = true; break; } if (board[newRow][newCol] === player) { count++; i++; } else if (board[newRow][newCol] === null) { break; } else { blocked = true; break; } } if (!blocked) { openEnds++; } } return { count, openEnds }; } // 根据棋型计算分数 function calculatePatternScore(patterns) { return ( patterns.win * SCORE_WEIGHTS.win + patterns.fourOpen * SCORE_WEIGHTS.fourOpen + patterns.fourSemi * SCORE_WEIGHTS.fourSemi + patterns.threeOpen * SCORE_WEIGHTS.threeOpen + patterns.threeSemi * SCORE_WEIGHTS.threeSemi + patterns.twoOpen * SCORE_WEIGHTS.twoOpen + patterns.twoSemi * SCORE_WEIGHTS.twoSemi ); } // 评估对手分数 function evaluateOpponentScore(row, col, opponent) { const directions = [ [0, 1], [1, 0], [0, -1], [-1, 0], [1, 1], [1, -1], [-1, 1], [-1, -1] ]; let maxScore = 0; for (const [dx, dy] of directions) { const newRow = row + dx; const newCol = col + dy; if (newRow >= 0 && newRow < SIZE && newCol >= 0 && newCol < SIZE && board[newRow][newCol] === opponent) { const patterns = evaluatePatterns(newRow, newCol, opponent); const score = calculatePatternScore(patterns); maxScore = Math.max(maxScore, score); } } return { win: 0, fourOpen: 0, fourSemi: 0, threeOpen: 0, threeSemi: 0, twoOpen: 0, twoSemi: 0 }; } // 检查是否是重要防守点 function isImportantDefensiveMove(row, col, player, opponent) { board[row][col] = opponent; const opponentPatterns = evaluatePatterns(row, col, opponent); board[row][col] = null; return ( opponentPatterns.fourOpen > 0 || opponentPatterns.fourSemi > 0 || opponentPatterns.threeOpen > 1 ); } // 计算附近己方棋子数量 function countAdjacentPieces(row, col, player) { let count = 0; for (let i = -2; i <= 2; i++) { for (let j = -2; j <= 2; j++) { if (i === 0 && j === 0) continue; const newRow = row + i; const newCol = col + j; if (newRow >= 0 && newRow < SIZE && newCol >= 0 && newCol < SIZE && board[newRow][newCol] === player) { count++; } } } return count; } // 事件监听 restartButton.addEventListener('click', restartGame); undoButton.addEventListener('click', undoMove); hintButton.addEventListener('click', showHints); modalRestartButton.addEventListener('click', restartGame); window.addEventListener('resize', initializeBoard); // 初始化游戏 initializeBoard(); }); </script> </body> </html>
Note.ms
/Fecve