Repository navigation
Checkers: a new game, with classic and Spanish rules (#357) - #368
Merged
Merged
Conversation
Draughts on the 32 dark squares of an 8x8 board, against the AI at three levels or two players on one phone, and a daily classic game from a seeded four-ply opening against the hard AI. Two rule sets. Classic checkers (English draughts): men step forward, jumps are compulsory and run to the end, a jump that crowns ends the move, and kings step one square both ways. Spanish draughts, which the issue linked: kings fly along the whole diagonal and capture from a distance, and a capture must take the most pieces, then the most kings. A game is drawn after 80 plies (classic) or 40 king moves (Spanish) without a capture or a man moving. The AI is a negamax with alpha-beta that extends forced captures; easy looks 1 ply ahead with a lot of noise, medium 3, hard 7. Measured over 8-10 games per pairing in both rule sets, hard beat medium and easy every time but one draw, and medium never lost to easy. The slowest hard move took 367 ms. Built on the core's screen-filling layout from the start (#359). Accent #B82066 (nearest game ΔE 22, white text 6.1:1). Store descriptions name it; German and Spanish were trimmed to stay under Play's 4000 characters. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01VoRrYWfb9CHLaEtJPXc4HH
Contributor
Author
|
Diff review
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #357
The owner said yes in chat (2026-10-19). Thanks to @unmashedpotatoes for the suggestion and for the link to the Spanish draughts rules.
What it is. Draughts on the 32 dark squares of an 8×8 board, against the AI at three levels or two players on one phone. The daily challenge is a classic game from a seeded four-ply opening against the hard AI, like Reversi's.
Two rule sets, chosen with a picker:
The AI. Negamax with alpha-beta, extending forced captures. Easy looks 1 ply ahead with a lot of noise, medium 3, hard 7. I measured it before writing the test bands, 8–10 games per pairing:
The slowest hard move took 367 ms on this laptop.
Page
.ch-fit/.ch-splitlayout (Games use only part of larger screens (7-inch phones, tablets, laptops) #359) from the start, and the canvas checks both sides before reusing its backing.ck-win,ck-hard,ck-clean(win without losing a piece).#B82066: ΔE 22 from the nearest game, white text 6.1:1.Proof
testCheckers(). Rules: start position, men forward only, compulsory and complete jumps, crowning ends a jump, win by blocking or capture, both draw counts, undo back to the start. Spanish: flying moves and distant captures, the quantity and quality rules, a whole Spanish AI game. Plus AI bands, the daily seed and the page wiring.The first mutation went uncaught at first, because the test position put the jumping piece first in board order. I moved the free man before it, and that version is in the test.
node tools/test.js:همهی 4186 بررسی سبز;MIN_CHECKSis now 4185.tools/browser-check.sh: 36 of 36 pages.No page errors.
Not tested: a real phone. The bot's speed on a slow phone is estimated from this laptop.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VoRrYWfb9CHLaEtJPXc4HH