A lightweight chess game implemented with pure vanilla HTML, CSS, and JavaScript. Features standard chess rules, special moves (castling, en passant, pawn promotion), move validation, check/checkmate detection, and game state persistence using localStorage. No frameworks, no libraries – just clean, efficient code designed for static web hosting.
Repo TMHSDigital/Static_Chess, read from GitHub 1 min ago. TMHSDigital has not joined Take My Repo.
TMHSDigital/Static_Chess is a public repo on GitHub by TMHSDigital. A lightweight chess game implemented with pure vanilla HTML, CSS, and JavaScript. Features standard chess rules, special moves (castling, en passant, pawn promotion), move validation, check/checkmate detection, and game state persistence using localStorage. No frameworks, no libraries – just clean, efficient code designed for static web hosting. It declares the Apache-2.0 license on GitHub. It is written mainly in JavaScript, has 7 stars and last changed on 2026-11-18. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-20.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
███████╗████████╗ █████╗ ████████╗██╗ ██████╗ ██████╗██╗ ██╗███████╗███████╗███████╗ ██╔════╝╚══██╔══╝██╔══██╗╚══██╔══╝██║██╔════╝ ██╔════╝██║ ██║██╔════╝██╔════╝██╔════╝ ███████╗ ██║ ███████║ ██║ ██║██║ ██║ ███████║█████╗ ███████╗███████╗ ╚════██║ ██║ ██╔══██║ ██║ ██║██║ ██║ ██╔══██║██╔══╝ ╚════██║╚════██║ ███████║ ██║ ██║ ██║ ██║ ██║╚██████╗ ╚██████╗██║ ██║███████╗███████║███████║ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝
A lightweight chess game built with pure vanilla web technologies - no frameworks, no libraries, just clean code.
Play Now | View Source | Report Issue
Static Chess is a fully functional chess game playable in a web browser. It is built using pure vanilla JavaScript, HTML, and CSS, with no external frameworks or libraries. The game features standard chess rules, move validation, check/checkmate detection, move history in standard algebraic notation, a computer opponent, a chess clock, game review, PGN and FEN import and export, undo, accessibility support, offline play, and game state persistence using localStorage.
It is designed to be simple, lightweight, and easily deployable on static hosting platforms like GitHub Pages.
localStorageThe game features an elegant, professional-looking interface with a dark theme and subtle visual cues:
Playing the computer: four opening moves, a hint, then a look back through the game
A game in progress on the clock (left), and looking back at an earlier move in the light theme with "Settings" open (right)
Clone the repository:
git clone https://github.com/TMHSDigital/Static_Chess.git
cd Static_ChessOpen index.html: Simply open the file in your web browser.
Optional (for contributors):
npm ci npm run lint npm run format npm run coverage
That's it! No build process or dependencies are required.
index.html in your browser. Served over http(s), for example from GitHub Pages, the game also works offline after the first visit and can be installed as an app.pgn or .fen file instead, and a file can also be dropped on the dialog. It also lists your last 20 games under "Past games" (a game goes there when you start or load another); click one to open it again, or press "Delete" beside it (asked twice) to remove it; "Clear all" removes them allStatic_Chess/
├── index.html # Main HTML entry point
├── 404.html # Shown by GitHub Pages for an unknown address
├── sw.js # Service worker: keeps a copy of the app for offline use
├── manifest.webmanifest # Makes the page installable as an app
├── _config.yml # Keeps docs, tests and tooling out of the published site
├── css/ # CSS styles
│ ├── style.css # General page styles
│ ├── board.css # Chessboard specific styles
│ └── pieces.css # Chess pieces styles
├── js/ # JavaScript logic
│ ├── config.js # Configuration and feature flags
│ ├── utils.js # Utility functions
│ ├── pieces.js # Piece definitions and movement patterns
│ ├── rules.js # Rules of chess as pure functions (move generation, check, draws)
│ ├── board.js # Board rendering and interaction
│ ├── game.js # The live game: state, move flow, undo, saving
│ ├── main.js # Application entry point
│ ├── drag.js # Drag and drop functionality (integrated with click flow)
│ ├── ai.js # Computer opponent (evaluation and search)
│ ├── ai-worker.js # Runs the search in a Web Worker
│ ├── promotion.js # Pawn promotion chooser
│ ├── notation.js # Writing SAN and PGN; reading PGN and FEN into checked moves
│ ├── saved-game.js # Checking a saved game read from storage
│ ├── game-store.js # The saved game and the past games in the browser's storage
│ ├── clock.js # The arithmetic and the rules of a chess clock
│ ├── review.js # The engine's scores put into words
│ ├── engine-bridge.js # Requests to the engine, through the worker or on the page
│ └── game-ui.js # Status, buttons, clocks, move list and the Load dialog
├── assets/ # Static assets
│ ├── icons/ # App icon (SVG, and PNG at 192px and 512px)
│ ├── social-card.png # Image shown when a link to the game is shared
│ ├── screenshots/ # UI screenshots for documentation
│ │ ├── game-in-progress.png
│ │ ├── play-vs-computer.webp
│ │ └── settings-open.png
│ └── [piece SVGs] # SVG files for chess pieces
│ ├── wp.svg, bp.svg # White and black pawns
│ ├── wr.svg, br.svg # White and black rooks
│ ├── wn.svg, bn.svg # White and black knights
│ ├── wb.svg, bb.svg # White and black bishops
│ ├── wq.svg, bq.svg # White and black queens
│ └── wk.svg, bk.svg # White and black kings
├── tests/ # Test files (Jest + jsdom)
│ ├── helpers/ # Shared loader that builds a fresh page and game per test
│ ├── unit/ # Unit tests for the rules, the engine, the game and its controls
│ └── integration/ # Game flow through the DOM, and the real index.html
├── releases/ # Release files
│ ├── README.md # Release directory documentation
│ ├── RELEASE_NOTES_v0.2.0.md # Release notes for v0.2.0
│ ├── RELEASE_NOTES_v0.1.0.md # Release notes for v0.1.0
│ └── RELEASE_GUIDE_v0.1.0.md # Release guide for v0.1.0
├── docs/ # Documentation
│ ├── ARCHITECTURE.md # Architecture and design documentation
│ ├── ROADMAP.md # Development roadmap
│ └── RELEASE.md # Release process documentation
├── .github/ # GitHub configuration
│ ├── workflows/ # CI/CD workflows (ci.yml, release.yml)
│ ├── ISSUE_TEMPLATE/ # Issue templates
│ ├── pull_request_template.md # Checklist for pull requests
│ ├── dependabot.yml # Dependency update schedule
│ ├── CONTRIBUTING.md # Development setup and conventions
│ ├── CODE_OF_CONDUCT.md # Code of Conduct
│ ├── SECURITY.md # How to report a vulnerability
│ └── CODEOWNERS # Code ownership rules
├── package.json # Dev dependencies and scripts (lint/test only)
├── package-lock.json # Exact versions of the dev dependencies
├── eslint.config.mjs # ESLint configuration
├── .prettierrc # Prettier configuration
├── .prettierignore # Files Prettier leaves alone
├── .editorconfig # Editor configuration
├── .gitignore # Git ignore rules
├── CHANGELOG.md # Project changelog
└── LICENSE # Apache 2.0 License file
The project follows a clear separation of concerns:
index.html: Main structure and layoutconfig.js: Feature flags and game settingsutils.js: Helper functions like coordinate conversionspieces.js: Piece objects and basic movement patternsrules.js: Legal move generation, check, castling, en passant, promotion and draw rules, with no DOM accessboard.js: DOM rendering, keyboard navigation, and diff-based updatesgame.js: Game state and move flow, undo, saving, and what the status and announcements saygame-ui.js: Draws the status line, buttons, clocks, move list and the Load dialog from what game.js tells itnotation.js, saved-game.js, game-store.js, clock.js, review.js: SAN, PGN and FEN text, saved-game validation, storage, clock rules and the wording of engine scores, with no DOM accessengine-bridge.js: Sends positions to the engine and brings its move or its scores backmain.js: Bootstraps the applicationdrag.js: Drag and drop integrated via existing click handlerspromotion.js: Dialog for choosing the promotion pieceai.js, ai-worker.js: Computer opponent, searched in a Web WorkerThe project includes comprehensive documentation to help developers understand the architecture and implement new features:
docs/ARCHITECTURE.md explains components, data flow, and state.docs/ROADMAP.md outlines features, priorities, and timeline.docs/RELEASE.md describes the automated release workflow via GitHub Actions.CHANGELOG.md tracks notable changes.To contribute to the project or implement new features, please review these documentation files first.
Since this is a purely static website, it can be easily deployed on any static hosting service.
GitHub Pages Deployment:
/ (root)https://tmhsdigital.github.io/Static_Chess/Pages builds the site from the repository root. _config.yml lists what is left out of it (docs, tests, dev tooling), so only the game is published; a new top-level file that is not part of the game belongs on that list.
CI/CD Workflows:
.github/workflows/ci.yml: Runs lint and tests on PRs and pushes.github/workflows/release.yml: Automatically creates GitHub Releases when tags are pushedOptional: Add a pages.yml workflow for CI-driven Pages deployment, or keep manual Pages settings.
See the Development Roadmap for a detailed plan of upcoming features.
Contributions are welcome! Please check the Development Roadmap for planned features and follow these steps:
For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING for development setup and the test and lint conventions, the Code of Conduct, and the Security Policy for reporting vulnerabilities.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Made with ❤️ by TMHSDigital
TMHSDigital/Static_Chess is a public repo on GitHub by TMHSDigital. A lightweight chess game implemented with pure vanilla HTML, CSS, and JavaScript. Features standard chess rules, special moves (castling, en passant, pawn promotion), move validation, check/checkmate detection, and game state persistence using localStorage. No frameworks, no libraries – just clean, efficient code designed for static web hosting.
It declares the Apache-2.0 license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
♞ lichess.org: the forever free, adless and open source chess server ♞
Its last change on GitHub was on 2026-11-18. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
A collection of (mostly) technical things every software developer should know about

Egret is a brand new open mobile game and application engine which allows you to quickly build mobile games and apps on Android,iOS and Windows.
remoteStorage is a simple library that combines the localStorage API with a remote server to persist data across sessions, devices, and browsers. It works as a simple key value database store and backend with support for React, Next.js, Vue, Node, or any Javascript stack
A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication
Bash is all you need - A nano claude code–like 「agent harness」, built from 0 to 1

Curated catalog of free, commercially usable game assets, libraries and tools. Each licence recorded from its source with the date it was read. Links only, nothing rehosted. JSON/CSV dataset and feeds.
Correct bpy for AI agents: Blender Python skills, rules and smoke-tested examples for Blender 5.2 LTS and 4.5 LTS, installable as a Claude Code and Cursor plugin.
AI-powered Cursor IDE plugin for FiveM and RedM resource development. 9 skills, 6 rules, 6 MCP tools, 12,000+ natives, 101 events, 24 snippets, 11 templates.
MCP server for Steam & Steamworks APIs - 25 tools (18 read + 7 write) for store data, player stats, reviews, pricing, achievements, workshop, leaderboards, inventory, and lobbies.
AI-powered development toolkit for Unity game development in Cursor IDE. 18 skills, 8 rules, 4 MCP tools, 20 snippets, 5 templates covering the full Unity lifecycle.

A neon arcade of free, open-source browser games built with Phaser 3, TypeScript and Vite. Keyboard, touch or gamepad, and it plays offline.
This page is also available as structured data, with the same sources and dates.
/api/v1/resources/gh/TMHSDigital/Static_ChessTake My Repo has not tested this on your machine. Requirements come from the project's own documentation.