個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A photorealistic 3D game of Portes, the Greek game of tavli closest to backgammon, played against the computer. Five difficulty levels from Beginner to Expert, plus a level-10 coach, Mr. Makis, who plays the best move he can find on your board and explains why.
Portes-<version>.apk from the latest release and open it
on your phone (you will be asked to allow installing apps from your browser or file manager). It runs
fully offline.No accounts, no ads, no tracking, no network calls: the game is a static page and everything it remembers (settings, scores, saved games) stays in your browser or on your phone.
.vbg files to share a game (every move of an imported file is re-checked by
the rules engine)..vbs).test/strategy-stats.mjs and checked by
test/strategy-check.mjs.From bkgm.com ("Portes") and Wikipedia ("Tavli"):
d enters it on the
opponent's home board (your point 25 − d); if only one checker can come in, the rest of the roll is lost.src/engine.js is the authority: its header lists the rules, and test/rules.mjs checks them with
hand-worked edge cases. test/legality.mjs re-implements the rules independently (absolute board with a
bar per colour, brute force over every die order) and checks, for every roll in thousands of positions,
that the moves the game offers are exactly the legal ones, that every play the computer can choose
replays click by click through the same turn API the board uses, and that game results agree.
PORTES_ENGINE=<path> points it at a modified engine: one-rule mutants (no bar-first, landing on two, no
hit, no larger-die rule, entering onto closed points, ...) are all caught.
The game has no build step. Serve the folder over HTTP (ES modules and the AI web worker do not load from
file://):
python serve.py # http://127.0.0.1:8835, with caching disabled for development
node test/rules.mjs # rules engine, edge cases, random full games, file formats
node test/legality.mjs # every legal play vs an independent brute-force rules implementation
node test/legality.mjs 12 200 # the same, a quick pass (~45 s)
node test/lessons.mjs # the guided lessons vs the engine (instant)
node test/strategy-check.mjs # the strategy guide's figures re-measured, EN/EL parity
node test/selfplay.mjs 200 1-2 2-3 3-4 4-5 # each level against the one below
node test/makis.mjs 40 120 # Mr. Makis against the Expert (slow)
node test/make-puzzles.mjs 8 8 150 40 # regenerate src/puzzles.js (worker threads)
node test/strategy-stats.mjs 3000 4 # the figures quoted in the strategy guide
test/browser-harness.mjs plays whole games through the page in a browser and checks the 3D board (both
bars included) against the engine after every turn (instructions in its header).
| Path | What |
|---|---|
index.html | Page shell, HUD, sheets, styles; the import map points three at vendor/. |
src/engine.js | Pure rules and AI (no DOM): legality with hits and the bar, the interactive turn API, full-turn enumeration, evaluation, the five levels and Mr. Makis's analysis. |
src/ai-worker.js | Runs the computer's choice and Mr. Makis off the main thread. |
src/main.js | Renderer, board and checker geometry (the bar on the centre rail), animation, input, turn flow, HUD, settings. |
src/records.js | Game records, move notation, .vbg / .vbs file formats with validated import. |
src/textures.js, src/themes.js | Procedural wood and marble textures; the ten board styles. |
src/lessons.js | The nine guided lessons as pure data: positions, rule text, goals and answers. |
src/puzzles.js | The puzzles, generated by test/make-puzzles.mjs. |
src/effects.js | Visual effects: the computer's last-move trails and the win confetti. |
src/sound.js | Synthesised sounds (no audio files). |
strategy.html | The strategy guide (standalone page, English and Greek). |
vendor/ | three.js r170 and three of its example modules (see THIRD-PARTY-NOTICES.md). |
app/ | Capacitor wrapper that packages the game as an Android app. |
test/ | Rules tests, the legality audit, self-play matches, the tuner, puzzles and the guide's statistics. |
Requirements: Node 18+, JDK 21 and the Android SDK (platform 35, build-tools 35).
cd app
npm install
node sync-web.mjs # copies index.html, strategy.html, src/ and vendor/ into app/www
npx cap add android # first time only; afterwards: npx cap sync android
node make-icons.mjs # draws the launcher icons and splash into the Android project
node patch-android.mjs # MainActivity: immersive landscape, keeps the phone's font size from scaling the HUD
cd android
./gradlew assembleDebug # -> app/build/outputs/apk/debug/app-debug.apk
In the app the strategy guide opens as a full-screen sheet over the game, and file exports are not
available (Android's WebView does not download files); importing .vbg / .vbs files works.
MIT. three.js is MIT-licensed as well; see THIRD-PARTY-NOTICES.md.