Make a chess app that plays by the real rules
Ask Vibes DIY for a chess app and the board now plays by the real rules of chess: castling, en passant, a pawn that becomes the piece you choose, check, checkmate, stalemate, and draws by repetition, by the fifty-move rule and when neither side has enough pieces left to mate. Play the computer and your opponent is Stockfish, the open-source engine the strongest players in the world train against, set to whatever strength you like.
The chess guide has prompts to start from. Here is the board, live in the page. You play White.
Pick Easy, Club or Strong under the board. Open it full screen to sign in, and your games save as you play, so you can pick one up on another phone.
The same ask, morning and afternoon
On the morning of November 5 we asked Vibes DIY for three chess apps: one against the computer, one for two friends on two phones, and an opening trainer. All three came back looking like chess, and each one had written its own rules from scratch. Two could not castle or capture en passant, and every pawn that reached the far side turned into a queen without asking.
By that afternoon we had taught Vibes DIY to build chess on chess.js, the open-source rules library much of the chess web already uses. Then we sent the same three asks again. All three new apps play by the full rules, and when a pawn arrives, the app asks what you want it to become.
Get posts like this in your inbox
One email field. Real updates. No algorithm required.
A real opponent at the strength you pick
When you play the computer, it is Stockfish, the engine behind the analysis boards on the big chess sites. Easy makes friendly mistakes. Strong is a match for anyone who will ever open your app. The engine thinks in the background, so the board stays smooth while it does.
Stockfish also makes a good coach. We asked for "a chess trainer: I play openings against a strong engine and it tells me when I blunder." The trainer that came back checks every move you make, marks the blunders with the move Stockfish would have played, and lets you ask which opening you blunder in most.
Play a friend from a link
The second ask was "Chess game I can play with a friend, I send them a link and we each move on our own phone." That app gives each game its own link. You and your friend move on your own phones, and anyone else who opens the link can watch.
Dress the board
How the board looks is up to you. Ask for an inlaid wood board, a park table under the trees, pieces you drag and drop, or a 3D board you can turn. The rules stay the same whatever it wears. Chess versus the computer came back as a glowing green terminal, all on its own.
Other games Vibes DIY makes well
Chess got its own lesson because it has an open-source rules library and an engine worth borrowing. Plenty of other games already come out playable from one sentence. We sent four more asks the same day:
- Word and puzzle games. "A daily five-letter word guessing game: everyone gets the same word each day, and it keeps my streak" came back with a daily word, a streak counter and a link to share today's puzzle. Bingo cards, sudoku, minesweeper and crosswords share the same playbook.
- Board games with a friend. "Checkers I can play with a friend" became Checkers Link: start a game, send the link, and each of you moves on your own phone.
- Physics toys. "A plinko board" became Plinko Drop, with marbles that bounce off the pegs into scoring bins and a ledger of your drops. Marble runs, slingshots and dominoes work the same way.
- Phone action games. "A one-thumb runner game for my phone" became a runner you steer by swiping anywhere on the screen, with your best score saved.
And if your game is three-dimensional, You can just make 3D shows how far one sentence goes there.
Try a chess app of your own. Paste this into Vibes DIY: "Chess I can play against the computer, with a wooden board and easy, medium and hard levels."
Make an app →