将棋盘嵌入您的网站
把下面的代码粘贴到您想显示棋盘的位置(HTML 页面,或 WordPress、Blogger、Wix 等的“自定义 HTML”模块)。框架会按内容自动调整高度。想保存名字并查看排行榜的玩家,可点击棋盘底部的链接前往 MateMoves。
象棋
<iframe src="https://matemoves.com/zh-cn/nhung/co-tuong/" title="象棋人机对战" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
揭棋
<iframe src="https://matemoves.com/zh-cn/nhung/co-up/" title="与电脑下揭棋" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
国际象棋
<iframe src="https://matemoves.com/zh-cn/nhung/co-vua/" title="国际象棋人机对战" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
五子棋
<iframe src="https://matemoves.com/zh-cn/nhung/caro/" title="五子棋人机对战" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
越南播棋
<iframe src="https://matemoves.com/zh-cn/nhung/o-an-quan/" title="越南播棋人机对战" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
围棋
<iframe src="https://matemoves.com/zh-cn/nhung/co-vay/" title="围棋人机对弈" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
围棋(13 路)
<iframe src="https://matemoves.com/zh-cn/nhung/co-vay/13/" title="围棋(13 路)人机对弈" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>预览
围棋(19 路)
<iframe src="https://matemoves.com/zh-cn/nhung/co-vay/19/" title="围棋(19 路)人机对弈" allow="fullscreen" style="width:100%;border:0;height:640px" loading="lazy"></iframe>
<script>
addEventListener("message", (e) => {
if (e.origin !== "https://matemoves.com" || !e.data?.choicoCao) return;
for (const f of document.querySelectorAll("iframe")) if (f.contentWindow === e.source) f.style.height = e.data.choicoCao + "px";
});
</script>