---
title: "Discussion on \"A xiangqi (Chinese chess) engine in one HTML file: move generation, perpetual check and an AI in a Web Worker\" | Hashnode"
description: "Discussion on \"A xiangqi (Chinese chess) engine in one HTML file: move generation, perpetual check and an AI in a Web Worker\". How a browser xiangqi engine generates moves, rules perpetual check and stalemate, and plays from a Web Worker. Our own project."
url: "https://hashnode.com/posts/a-xiangqi-chinese-chess-engine-in-one-html-file-move-generation-perpetual-check-and-an-ai-in-a-web-worker/6af8f9e688a91564c8203148"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A xiangqi (Chinese chess) engine in one HTML file: move generation, perpetual check and an AI in a Web Worker](https://antgamesai.hashnode.dev/a-xiangqi-chinese-chess-engine-in-one-html-file-move-generation-perpetual-check-and-an-ai-in-a-web-worker?utm_source=hashnode&utm_medium=feed)

How a browser xiangqi engine generates moves, rules perpetual check and stalemate, and plays from a Web Worker. Our own project.

5h ago · 13 min read · antgamesai.hashnode.dev  
Read the article

-   [#gamedev](https://hashnode.com/tag/gamedev)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Ant Games](https://hashnode.com/@antgamesai)

@antgamesai

  
[View profile](https://hashnode.com/@antgamesai)

We build free original browser games: one HTML page, no ads. antgames.ai

Ant Games makes free original browser games, no ads, no purchases. Our own site: https://antgames.ai

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
