五子棋html网页版源代码
<!DOCTYPE html>
<html>
<head>
<title>五子棋游戏</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0d9b5;
}
#game-container {
text-align: center;
}
#board {
background-color: #e8c873;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
#info {
margin-top: 20px;
font-size: 24px;
font-family: Arial, sans-serif;
color: #6b4423;
}
button {
padding: 10px 20px;
font-size: 16px;
background-color: #6b4423;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="game-container">
<canvas id="board" width="525" height="525"></canvas>
<div id="info">黑方回合</div>
<button onclick="resetGame()">