PolyTabletop

English · Română · Français · Italiano · Español · Português · Deutsch · Magyar

PolyTabletop

Version: 0.9.0 · Last updated: 2026-11-26

What it is

PolyTabletop (formerly MASA) is a clean-room collection of table-top games written in Rust: 171 playable games against the computer, in the terminal or in a graphical window, plus hot-seat and two-player network play. Abstract classics, card and dice games, original variants of modern mechanics under names of their own, cooperative games with an AI partner, hidden-role games where bots fill the rest of the table, party and word games, miniatures and collectible-card engines with original cards. The engine and the games have no external dependencies; only the graphical interface (polytabletop-gui) uses eframe/egui. The catalog tracks 201 target games.

Presentation page: https://polytabletop.chiuta.ro. Short install guide in your language: docs/INSTALL.en.md (Română · Français · Italiano · Español · Português · Deutsch · Magyar).

Use

cargo build --release
./target/release/polytabletop list
./target/release/polytabletop play chess             # you are Player 1 (white)
./target/release/polytabletop play go --you two      # the computer starts
./target/release/polytabletop --lang de play barbut --seed 42

Games

171 games can be played now, in the terminal and in the graphical interface; the catalog has 201 entries (polytabletop catalog ends with: implemented 182, own variants planned 3, generic toolkit 16). The 16 toolkit entries are role-playing systems, served by the generic polytabletop-rpg crate (dice, sheets, ability checks, dungeon generator, battle simulator, journal) without any publisher’s rules. Categories and counts, from polytabletop-games/src/lib.rs:

Category Games Examples (ids)
Cards 45 septica, macao, belote, bridge, poker, rummy, tarot, skat, briscola, cribbage, hanafuda
Abstract 40 chess, draughts, reversi, go, xiangqi, shogi, hex, gomoku, mancala, konane
Strategy 24 insula, mozaic, arhipelag, apus, gospodaria, furnale, plus original variants of modern designs
Party 16 lupii, consiliul, spionii, povestitor, impostor
Dice 11 backgammon, ludo, snakes, barbut, zarpoker, yut
Classic 9 domino, mahjong, battleship, mastermind, bingo
Family 7 orasel, roata, turnul, zidurile
Miniatures 6 miniaturi, nave, patrula, gridiron
Cooperative 6 artificii, focare, strajile, cripta
Collectible cards (TCG) 5 tcg, tcg_evo, tcg_zone, tcg_lant, tcg_cerneala
Deduction 1 conac
Words 1 litere
Total 171  

Three catalog entries remain planned as original variants (Twister, Campionii Distracției, Turistico). Short rules for every game are in docs/JOCURI.md, the generated catalog in docs/CATALOG.md. In the graphical interface, 36 games have a drawn board with clickable moves (chess, draughts, reversi, four in a row, gomoku, go, morris, xiangqi, shogi, backgammon, ludo and pachisi, hex, the mancala family and more); the other games are shown as text with their legal moves as buttons.

Languages

PolyTabletop speaks 8 languages: English, Română, Français, Italiano, Español, Português, Deutsch, Magyar. The command-line and graphical interfaces are translated in all 8. The language is chosen by --lang xx, then POLYTABLETOP_LANG, then the system LANG, otherwise Romanian. The titles and rules of all 171 games are translated into the 8 languages (polytabletop-games/data/i18n/, with fallback to the Romanian text if an entry is missing); the text inside the games (cards, content banks, prompts) is still in Romanian. Move notation (e2e4, c3-d4) never changes. Details: docs/I18N.md.

AI

Network play

polytabletop host ID waits for one client on port 7878 (or --port P) and plays as Player 1 (or 2 or random with --side); polytabletop join HOST:PORT connects. The text protocol polytabletop/1 is authoritative on the server: the only copy of the game lives there, and each side sees only its own private information. Whoever does not move within --timeout seconds (600 by default) loses. In the terminal you type a move, ?, state, chat TEXT or q. Protocol and details: docs/RETEA.md. The network play is tested over loopback (polytabletop/tests/net_loopback.rs), not across real networks.

Rules pages

Every playable game has a page with the goal, setup, turn structure, move syntax, special rules, scoring, end of game, AI notes and differences from traditional rules: docs/reguli/INDEX.md (games 1 to 86) and docs/reguli/INDEX2.md (games 87 to 171). The pages are in Romanian.

Architecture

Crate Role
polytabletop-core typed Game trait, object-safe GameObj (moves as text, for any interface), AI (alpha-beta, MCTS), own random generator, i18n; no external dependencies
polytabletop-games all games (one module each), playable(), HOTSEAT_SAFE, generated catalog; no external dependencies
polytabletop-rpg generic role-playing toolkit; no external dependencies
polytabletop-gui egui/eframe graphical interface; the only crate with external dependencies, outside the default build
polytabletop command-line interface, arena, network, transcripts

A new game is a struct that implements Game (legal moves, apply, outcome, evaluation, display) plus one entry in playable(); every front end gets it for free. See docs/ARHITECTURA.md and docs/GUI.md (these documents are in Romanian).

Building, testing and CI

Clean-room and trademarks

Limits

Contributing and changelog

Contributions are welcome under the clean-room rules: see CONTRIBUTING.md (how to add a game, tests, pull-request checklist). Version history: CHANGELOG.md.

License

Declared in Cargo.toml as MIT OR Apache-2.0. Copyright (c) 2026 Alexandru-Ionuț Chiuță (Alexio).

Credits

Author: Alexio (Alexandru-Ionuț Chiuță), part of the “Fără Frontiere” (Without Borders) series of trade-free applications. Contact: alexio@trom.tf. Presentation page: https://polytabletop.chiuta.ro.