Embed a board on your website
Paste the code below where you want the board to appear (an HTML page, or the "custom HTML" block in WordPress, Blogger, Wix...). The frame resizes to fit its content. Players who want to save their name and see the leaderboard can use the link under the board to go to MateMoves.
Xiangqi
<iframe src="https://matemoves.com/en/nhung/co-tuong/" title="Xiangqi vs Computer" 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>Preview
Jieqi
<iframe src="https://matemoves.com/en/nhung/co-up/" title="Jieqi vs Computer" 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>Preview
Chess
<iframe src="https://matemoves.com/en/nhung/co-vua/" title="Chess vs Computer" 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>Preview
Gomoku
<iframe src="https://matemoves.com/en/nhung/caro/" title="Gomoku vs Computer" 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>Preview
Ô ăn quan
<iframe src="https://matemoves.com/en/nhung/o-an-quan/" title="Ô ăn quan vs Computer" 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>Preview
Go
<iframe src="https://matemoves.com/en/nhung/co-vay/" title="Go vs Computer" 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>Preview
Go 13x13
<iframe src="https://matemoves.com/en/nhung/co-vay/13/" title="Go 13x13 vs Computer" 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>Preview
Go 19x19
<iframe src="https://matemoves.com/en/nhung/co-vay/19/" title="Go 19x19 vs Computer" 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>