3D Chess.
A full chess game against an AI, in one HTML file.
Best on a phone: it fills the screen and scrolling cannot interfere.
Playing loads its libraries from cdn.jsdelivr.net, a public CDN, so that host sees the request like any other. Nothing you do in the game is sent to us. The downloaded file does the same when you open it.
What You’re Playing.
3D Chess is a complete chess game on a rendered board with black and white squares, a gold grid and a–h, 1–8 labels. The pieces are built in code from turned profiles and simple shapes, lit with physically based materials and soft shadows.
The rules are all there: castling, en passant, promotion with a piece picker, check, checkmate, stalemate, and draws by threefold repetition, the fifty-move rule or insufficient material. Moves are logged in standard algebraic notation, and you can undo them. Click one of your pieces and it lifts and lights up, with a dot on every square it can legally move to, red on squares where it can capture. The last move and any check are highlighted too.
The AI is on by default and plays Black against you. It uses an alpha-beta search with a capture search at the end, up to five plies (half-moves) deep, thinking for at most a second and a half on a desktop. We haven’t measured its strength. Turn it off to play two people on one screen. When a piece is captured it is not simply removed: it lifts off the board, drifts through the air trailing sparkles and lowers itself, upright, onto a felt tray at the side. Sounds are synthesised on the fly.
What’s in it
- Full rules: castling, en passant, promotion and every kind of draw
- AI opponent on by default, playing Black, with iterative deepening
- Click a piece to lift it and see all of its legal moves
- Captured pieces float through the air to a rest tray at the side
- Move list in algebraic notation, undo, and flip board
- Orbit, zoom and pan camera, tap or click to move
- Board, wood, felt and sound generated in code, no asset files
How To Play.
Keyboard and mouse
- Click a piece, then a squareSelect it and see its legal moves, then move
- DragOrbit the camera
- ScrollZoom
- New, Undo, Flip, AI, SoundStart over, take back a move, turn the board, switch the AI on or off, mute
Touch
- Tap a piece, then a squareSelect it and see its legal moves, then move
- DragOrbit the camera
- PinchZoom
- Two-finger dragPan
Kael wrote this from a single prompt in a chat interface, with no tools and no follow-up, as one HTML file.
One difference from the others
The playable version on this site is not exactly Kael’s first reply. After the reply, the board colours, the move highlights, the capture animation, the default AI setting and a bug that wrote the wrong letter for each piece in the move list were fixed outside the chat. The other demos are untouched.
More Demos.
- Simulation3DElectronicsKael Pro Beta
Fan Circuit
Two AA cells, a three-position switch and a small fan on a 3D circuit board, with the current, voltage and speed worked out from the real electrical equations. Written by Kael Pro Beta in one take.
Try it - Game3DSandboxProcedural
Blockscape
Explore an endless generated world of forests, deserts, mountains and oceans, then dig and build with ten block types. Sunrises, stars, rippling water and wandering animals, in one file.
Play it - Game3DAI opponents
Ouroboros
Steer a snake around a walled arena at sunset, eat glowing orbs and outlast the AI hunters. Three.js, procedural textures and synthesised sound, all in one file.
Play it