Black FridayGame templates at Black Friday pricesEnds in See the deals

Strategy · HTML5

Toy Chess

Complete HTML5 chess game with a built-in engine

by Polar GamesVersion 1.0.0Updated Nov 23, 2026

  • Source code
  • Live demo
  • Documented
Perpetual licence$49 $41.65 -15%Buy now
The main menu: play the computer, two players, mate challenges and Learn the pieces.Six opponents with their own portraits, from beginner to final boss.A game: legal moves on the board, captured pieces, move list and buttons.Check: the king lights up and only moves that save it are allowed.Promotion: queen, rook, bishop or knight.The checkmate sequence: the net closes and the king topples.Result panel: play again, swap colors or view the board.36 mate challenges in three groups, with saved progress.A challenge, with See solution and Retry.Learn the pieces with animated demonstrations.Settings: vibration, reduce motion, 14 languages, full screen and game options.

Toy Chess: HTML5 Chess Game

A complete chess game for the web with a glossy toy look. All the official rules, an original chess engine with six opponents, two players on one device, 36 mate challenges and an animated lesson for beginners. Plain HTML, CSS and JavaScript ES modules: no framework, no npm dependencies, no build step.

Toy Chess: six computer opponents from beginner to final boss

Six opponents with personality

Pip is just learning, Nina grabs free pieces, Otto is solid and careful, Vera plans ahead, Rex is a sharp attacker and Atlas is the final boss. Each one has six animated portraits, reacts to the game and makes mistakes like a person at the lower levels. The engine runs in the browser in a Web Worker, so the screen does not freeze while it thinks and no server is needed.

Every chess rule

Castling, en passant, promotion to any piece, check, checkmate, stalemate, threefold repetition, the 50-move rule and insufficient material. Tap or drag the pieces, with legal moves marked on the board. Hints, undo, board flip, captured pieces, a move list and automatic saving with Continue.

Toy Chess: castling, en passant, promotion, check and mate

36 mate challenges and a lesson

12 challenges each of mate in 1, 2 and 3, every one with a verified single winning first move. A wrong move goes back so the player can try again, and See solution plays the whole answer on the board. Learn the pieces demonstrates each piece and the special moves with animation.

Toy Chess: 36 mate challenges, mate in 1, 2 and 3

Every screen, every language, easy to reskin

Layouts for phones and tablets in portrait and landscape and for desktop monitors, with the board in the center. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. Replace the pictures in assets/, change the colors at the top of src/styles.css and tune every animation in the FEEL block of src/config.js.

Toy Chess on phone, tablet and desktop, in 14 languages

Screens from this edition

Captured from the edition sold here.

Included

  • All official chess rules: castling, en passant, promotion, check, checkmate, stalemate, threefold repetition, the 50-move rule and insufficient material
  • Original chess engine in a Web Worker, with 6 opponents from beginner to final boss, each with 6 animated portraits
  • Two players on one device, with optional board flip on each turn
  • 36 mate challenges (mate in 1, 2 and 3) with verified solutions and See solution
  • Learn the pieces: animated demonstrations of every piece, castling, en passant and promotion
  • Hints, undo, board flip, captured pieces, move list and automatic save with Continue
  • 14 interface languages; layouts for phones and tablets in portrait and landscape and for desktop; touch, drag and mouse
  • Ready-to-host game/ folder and the complete editable source (plain JavaScript ES modules, no build step) with 31 checks, a preview server and npm run build
  • Offline buyer guide in 14 languages and a step-by-step customization guide

Not included in this edition

  • Online multiplayer, accounts or leaderboards
  • Native apps, hosting and custom development

What is in the ZIP

The real folder structure of the package you download, with names and sizes read from it.

toy-chess-1.0.0-complete.zip435 files · 10.6 MB
  • toy-chess-static-1.0.0/434 files · 10.6 MB
    • documentation/HTML guide, open it before you buy30 files · 3.1 MB
      • img/JPG · PNG · 15 files · 2.4 MB
      • customization-de.html17 KB
      • customization-es.html17 KB
      • customization-fr.html17 KB
      • customization-id.html17 KB
      • customization-it.html17 KB
      • customization-ja.html18 KB
      • customization-ko.html17 KB
      • customization-nl.html17 KB
      • customization-pl.html17 KB
      • customization-pt.html17 KB
      • customization-ru.html20 KB
      • customization-tr.html17 KB
      • +3 more files494 KB
    • game/Ready to host: upload this folder193 files · 3.7 MB
      • assets/Art, audio and fontsMP3 · PNG · TXT · WEBP · WOFF2 · 148 files · 3.5 MB
      • src/Source modulesCSS · JS · 43 files · 281 KB
      • DOCUMENTATION.txt1 KB
      • index.html1 KB
    • source/Readable source code204 files · 3.8 MB
      • assets/Art, audio and fontsMP3 · PNG · TXT · WEBP · WOFF2 · 148 files · 3.5 MB
      • src/Source modulesCSS · JS · 43 files · 281 KB
      • tests/Automated testsMJS · 6 files · 14 KB
      • tools/Build and check scriptsMJS · 3 files · 5 KB
      • index.html1 KB
      • package-lock.json1 KB
      • package.json1 KB
      • README.md3 KB
    • THIRD-PARTY-LICENSES/Licence notices to keep with your game3 files · 10 KB
      • Fredoka-OFL.txt4 KB
      • Nunito-OFL.txt4 KB
      • README.txt1 KB
    • CHANGELOG.txtVersion history1 KB
    • CUSTOMIZATION.html1 KB
    • DOCUMENTATION.htmlOpens the guide1 KB
    • START-HERE.txtQuick start1 KB
  • POLAR-MARKETPLACE-START-HERE.txtStart here: licence, support and first steps1 KB

Item details

Edition
Standalone Browser Edition
Version
1.0.0
Released
Nov 23, 2026
Updated
Nov 23, 2026
Category
Strategy
Languages
English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean, Simplified Chinese
Files included
HTML, CSS, JavaScript, WebP, MP3, WOFF2
Built with
HTML5, Vanilla JavaScript, ES Modules, Web Workers, Web Audio
Browsers
Modern browsers with WebGL2
Documentation
Documentation

Author

Polar Games

Brazilian studio making browser games. Every template here is a game we built and published.

See our games

Requirements

  • A current browser with JavaScript and audio support
  • Static HTTP(S) hosting; no database, PHP or author account required
  • Only for editing the source: Node.js 26.13 or newer

Support covers technical questions and reproducible defects in the supplied game. Installation and customisation are separate services.

Changelog

  1. 1.0.0Nov 23, 2026

Questions

Do I need to build the game?

No. Upload the contents of game/ to any static HTTP(S) host. The source/ folder is only needed to run the tests or rebuild.

Can I reskin it?

Yes. Replace the WebP pictures and MP3 sounds keeping their names, change the colors at the top of src/styles.css and the opponents in src/config.js. The customization guide has step-by-step recipes.

Does it use a third-party chess engine?

No. The rules and the engine are original code, in src/rules.js and src/engine.js, and they run in the browser.

Can I add my own challenges?

Yes. Add a position to src/puzzles.js and run npm test: it checks that each challenge has one winning first move and no shorter mate.

Does it work on phones?

Yes, in portrait and landscape, with touch and drag. It also works with a mouse on desktop.

Where is progress saved?

In the player's browser (localStorage): the game in progress, solved challenges and settings. There is no account or server.

What licence applies?

The Polar Games Marketplace terms shown at checkout.

Read the full licence, support, refund and privacy terms

Before you buy: guides and reviews

From Brazil to the world

Buyers in 25 countries

License a ready HTML5 game, with source code, for your website, app or brand.

  • 900+sales
  • 25countries
  • 2016selling since
Countries where we have sold: Brazil, United States, United Kingdom, Germany, Canada, Australia, France, India, Netherlands, Spain, Italy, Japan, South Korea, Poland, Mexico, Sweden, Switzerland, Singapore, United Arab Emirates, Saudi Arabia, Indonesia, Türkiye, Portugal, Philippines, Vietnam.
Toy Chess$49 $41.65 -15%
Buy now