Логотип Choosing A Domino Move By End Matching

Choosing A Domino Move By End Matching

Организация
runtime-si
choosing-a-domino-move-by-end-matching

Выбирает ход робота в домино и место для костяшки на столе. По костяшкам на руке (значения считываются с помощью reading-domino-pips-and-orientation), двум открытым концам раскладки (значение, точка ребра в мировых координатах, направление наружу), числу костяшек у других игроков и костяшкам в резерве определяет допустимые ходы: костяшка с совпадающим значением ставится на соответствующий конец, как в abw333/dominoes. Затем ранжирует их с помощью стратегии игрока — random, greedy (наибольшая сумма точек), doubles first или search (вероятностный alpha-beta по раздачам скрытых костяшек из исходного кода) — и возвращает костяшку, конец и её позу в мировых координатах: совпадающая половина касается конца, костяшка располагается прямо, огибает угол перед краем стола или другой костяшкой либо ставится поперёк при дубле. Если допустимых ходов нет, возвращает draw, pass или game_over. Поддерживаются правила с блокировкой или добором, 2–4 игрока и наборы от дубль-шестёрки. Без движения. Используйте навык в ход робота после считывания его костяшек и открытых концов раскладки, но до размещения костяшки.

Обзор

Издательruntime-si
РепозиторийRoboSkillHub
Название навыкаchoosing-a-domino-move-by-end-matching
Звёзды
242
Форки
27
Файлы в комплекте
2
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 2

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — runtime-si. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Choosing A Domino Move By End Matching в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/runtime-si/RoboSkillHub/tree/main/skills/choosing-a-domino-move-by-end-matching
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runtime-si/RoboSkillHub.git /tmp/RoboSkillHub
mkdir -p .claude/skills
cp -r /tmp/RoboSkillHub/skills/choosing-a-domino-move-by-end-matching .claude/skills/choosing-a-domino-move-by-end-matching
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Choosing A Domino Move By End Matching в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Choosing A Domino Move By End Matching, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Choosing A Domino Move By End Matching не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

choosing-a-domino-move-by-end-matching

The game half of playing dominoes with the YAM: given what the robot sees, which tile, on which end, turned which way, and where exactly it goes on the table.

The loop

  1. reading-domino-pips-and-orientation on the robot's hand: each tile's value_ab (a at ends_world[0]) and pose. On the board: the two end tiles' values and poses (the open value is the half farther from the line).
  2. This skill. board.ends[k] is {value, position, direction, crosswise}: position is the midpoint of the end tile's open edge (where the next tile touches), direction the outward unit vector along the line, crosswise whether the end tile is a double lying across. board.footprints are the placed tiles (center, axis, optional length / width; the reader's center_world / axis_world are accepted). new_ends / new_footprint of a play are the board after it, if the next turn does not re-read.
  3. play: pick the tile at hand_index and place it at place_pose, end a of the tile at target_ends_world[0] (the placer turns the tile so its a-to-b axis has yaw place_yaw_deg). draw: take a boneyard tile, read it, run again. pass / game_over: the opponents' turn / the end.

The opponents' moves come from re-reading the board; their tile counts, the boneyard count and the values each opponent passed or drew on (opponent_missing) are bookkeeping in the graph.

What it does

  1. Legal moves (the source's Game._update_valid_moves): a tile holding the value of end 0 may go on end 0, one holding end 1's on end 1; when both ends show the same value a tile is listed once (geometry then tries both ends). The opening (empty board) may play any tile, or only must_play.
  2. Players (players.py): each re-sorts the move list stably, and they are applied in turn, so the last one decides and the earlier ones break its ties. Presets: random; greedy = random, bota_gorda (biggest pip sum first); double = random, bota_gorda, double (doubles first); search = random, bota_gorda, search. A list of the source names (identity, random, reverse, bota_gorda, double, search) composes them freely.
  3. Search (probabilistic_alphabeta): samples (24) times, deal the unseen tiles (the set less this hand and played) to the opponents (their counts), the boneyard and out of play, so that no opponent holds a value it passed or drew on (Game.missing_values; with draw-until-it-fits the values stay missing, since the tile that fits is played at once). Run alpha-beta on the deal with full information (my side maximizes; with four players the partners are seats 0 and 2), bota_gorda ordering, depth (10) plies and nodes (2000) per deal, the position past the budget valued at 0.5 x (the other side's pips - mine). The move that is best in most deals wins.
  4. Game end (Game.make_move): a player out scores every pip left; a blocked game goes to the side with fewer pips (a tie scores nothing). The skill routes game_over when it sees the end; the scores are in my_pips and the counts the graph keeps.
  5. Placement (new). Against an end at edge point P going out along d, with the tile L x W and the gap g (1 mm):
    • straight: centre P + d (g + L/2), long axis along d;
    • crosswise (a double, doubles_crosswise): centre P + d (g + W/2), long axis across d; the next tile meets its long side;
    • corner (turn by n = d turned +-90 deg): the matching half sits square in front of the end, centre P + d (g + W/2) + n (L/2 - W/2), long axis along n; the line then goes on along n. The matching half is always the one nearest P (the source's Board.add inversion), so target_ends_world puts the tile's a end where it belongs. A placement must lie inside the table box less edge_margin (10 mm) and overlap no footprint by more than 0.5 mm. It is taken in this order: straight on (or crosswise) when it fits and a tile could still follow; else the corner, of those that fit and leave room, with the longer straight run after it (up to 4 tiles; toward the table centre on a tie); else whatever fits. Placements over the cell in front of the other open end are used only when nothing else fits, so one branch does not wall the other in. The player's ranking is walked until a move has such a placement; if the player's first choice was skipped, detail says so. The table is table ({min, max} in x, y), else robot.describe_workspace's bounds; the opening goes at start_pose or the table centre, along the table's longer side.

Inputs

  • hand: [[a, b], ...] or tile records with value_ab (or value).
  • board: {} for the opening, else ends (above), footprints, and optionally tiles (the played tiles, used when played is not given).
  • player (greedy), rules (draw | block), boneyard_count, opponent_counts (the others in turn order after this player; needed by search), played, opponent_missing (per opponent, the values it lacks), passes_in_a_row (consecutive passes just before this turn), must_play, teams (default: with four players), max_pip (6).
  • table, start_pose ({position, direction}), tile_size ([L, W], 0.048 x 0.024 m, the reader's default), touch_gap (0.001 m), edge_margin (0.01 m), doubles_crosswise (true).
  • samples, depth, nodes, seed for the players' randomness.

Outputs

tile, hand_index, end, end_value, layout, place_pose, place_yaw_deg, target_ends_world, new_ends, new_footprint, legal_moves and ranked_moves ({tile, hand_index, end}, the player's order), search_counts (deals in which each move was best), my_pips, game_over_reason, detail.

The constants, and why

  • TILE_SIZE 48 x 24 mm: as reading-domino-pips-and-orientation.
  • TOUCH_GAP 1 mm: the tiles should touch, but a commanded footprint that overlaps the end tile makes the placer push it; the YAM places to a few mm without visual servoing, so 1 mm is below what the arm resolves anyway.
  • EDGE_MARGIN 10 mm: a tile placed a few mm off still lies on the table.
  • OVERLAP_TOLERANCE 0.5 mm: numerically touching footprints are not overlapping.
  • RUN_LOOKAHEAD 4 tiles (~0.2 m): enough to tell a turn into open table from one into a pocket on the station's 0.5 x 0.45 m box.
  • Search budget samples 24, depth 10, nodes 2000: see Measured; the source enumerates every deal and searches to the end, which with a boneyard is many seconds a move in Python. EVAL_WEIGHT 0.5 is a hub choice (half of the points the pips would score now).

Measured

tests/bundles/_domino_game.py plays whole games in which every player's turn is this skill's run with only that player's information (its hand, the two world ends and the placed footprints, played tiles, counts, missing values). A referee checks every answer against its own rules and every placement: inside the real YAM station's tool box (x -0.15..0.35 m, y 0.10..0.55 m, from real/motion_server.py) less 10 mm, overlapping no placed tile, 1 mm from the end it matches, the matching half nearest it. Seats alternate; seeds 1000+.

Legality: 100 %. Every answer in every game below and in the placement games (the opponents' included, since they are this skill too) was a legal play, or a draw / pass / game_over when no tile fitted; the referee raised on none.

Win rates (A's side; 4 players: A holds seats 0 and 2; 3 players: one A against two B, so chance is 1/3; a tie counts half; games ending no_room left out). Points objective and budget as shipped (24 deals, 10 plies, 2000 nodes).

rulesplayersA vs BgamesA wins / ties / lossesno_roomA win rates per answer
draw2random vs random400193 / 4 / 20120.4900.0006
draw2greedy vs random400196 / 0 / 20310.4910.0006
draw2double vs random400252 / 0 / 14710.6320.0006
draw2search vs random200128 / 0 / 7200.6400.005
draw2search vs greedy200120 / 1 / 7900.6030.006
block2greedy vs random400220 / 15 / 16500.5690.0008
block2search vs random200123 / 6 / 7100.6300.007
block2search vs greedy200110 / 5 / 8500.5620.008
block4greedy vs random400198 / 9 / 19300.5060.002
block4search vs random200143 / 2 / 5500.7200.021
block4search vs greedy200129 / 6 / 6500.6600.015
draw3greedy vs random400157 / 6 / 23700.400 (chance 0.333)0.001

Greedy (bota gorda) sheds pips, which is what the source's points reward, but it wins no more often than random in the draw game or with four players; doubles first does (0.63), since a double can only go on one value and is the tile most likely to be stuck. Search wins 0.60-0.72 against both. Tried and not kept: a win-first search objective (terminal +-1000 + points, cut-off by tile counts) gave 0.668 / 0.690 (draw, 2 players, vs random / greedy, 150 games) and 0.687 / 0.651 (block, 4) against 0.657 / 0.700 and 0.707 / 0.695 for the points objective - no consistent gain. Budget (search vs greedy, 120 games): 8 deals / 6 plies / 500 nodes 0.637 (draw 2) and 0.617 (block 4); 24 / 10 / 2000 0.650 and 0.646; 48 / 14 / 6000 0.688 and 0.571 at 7x the time.

Fidelity to the source. Against the upstream dominoes package (installed from the same commit): legal_moves equalled Game.valid_moves in 1013 / 1013 positions of 60 random 4-player games, and alphabeta without a budget gave the same value as dominoes.search.alphabeta in 55 / 55 late positions (12 tiles left), its best move reaching that value in all 55.

Placement. Random play, 500 games each of draw-2, block-4, draw-3 and block-2 (36 039 placements: 24 333 straight, 5 404 crosswise, 6 189 corner left, 113 corner right): every placement inside the box and clear of the others, and 1 game of the 2000 ended no_room. In the 400-game rows above, 4 of 4000 did. The failures are pockets: one branch of the line turned back alongside itself and left the next tile no cell (the 4-tile run lookahead does not see them). An earlier version without the run lookahead and the kept-clear cell in front of the other end let one branch wall the other end in (1 of 200 games).

The opponents' turns in these games are this skill too; human opponents and the real perception and placing errors were not part of any run.

Not done

  • No robot motion and no perception: the hand and the ends come from reading-domino-pips-and-orientation, the pick and place from a placing skill (placing-with-contact-descent or transporting-objects); neither was run in this loop. The sim check of PORTING.md does not apply (the skill does not move the arm).
  • Spinner games (a first double open on four sides), Mexican Train, all-fives scoring and drawing while holding a playable tile are not modelled.
  • The source's omniscient player (it reads the other hands) is not ported.
  • OpenSpiel's block dominoes (Apache-2.0) was read for the 2-player block rules (7 tiles each, 14 out of play), which rules: block with one opponent covers; no OpenSpiel code is used.

Provenance

Adapted from abw333/dominoes (MIT, Alan Wagner, commit ea9f532): dominoes/game.py (_update_valid_moves, make_move, missing_values, random_possible_hands), dominoes/board.py (_add_left / _add_right), dominoes/players.py (random, reverse, bota_gorda, double, probabilistic_alphabeta) and dominoes/search.py (alphabeta). Changed: 2-4 players with optional teams instead of 4 partners; the draw game with a boneyard; tiles out of play; a depth / node budget and an evaluation in the search; the board as two world ends; routed exits. New: the world placement and the table / footprint checks. The license is LICENSE.dominoes beside this file.

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Choosing A Domino Move By End Matching?

Выбирает ход робота в домино и место для костяшки на столе. По костяшкам на руке (значения считываются с помощью reading-domino-pips-and-orientation), двум открытым концам раскладки (значение, точка ребра в мировых координатах, направление наружу), числу костяшек у других игроков и костяшкам в резерве определяет допустимые ходы: костяшка с совпадающим значением ставится на соответствующий конец, как в abw333/dominoes. Затем ранжирует их с помощью стратегии игрока — random, greedy (наибольшая сумма точек), doubles first или search (вероятностный alpha-beta по раздачам скрытых костяшек из исх...

Зачем использовать Choosing A Domino Move By End Matching в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Choosing A Domino Move By End Matching — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Choosing A Domino Move By End Matching в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/runtime-si/RoboSkillHub/tree/main/skills/choosing-a-domino-move-by-end-matching. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Choosing A Domino Move By End Matching?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Choosing A Domino Move By End Matching?

С любым количеством. В TypingMind вы можете использовать Choosing A Domino Move By End Matching с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Choosing A Domino Move By End Matching?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — runtime-si. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип JuliusBrussee

Cavecrew

JuliusBrussee
СообществоПопулярный

Когда вместо работы напрямую или использования `Explore` следует делегировать задачу `cavecrew-investigator` (поиск кода), `cavecrew-builder` (редактирование 1–2 файлов) или `cavecrew-reviewer` (проверка diff). Их ответы…

6.2K
106.3K
Инструкции
Открыть
Логотип nexu-io

Pricing Page

nexu-io
ОрганизацияПопулярный

A standalone pricing page — header, plan tiers, feature comparison table, and an FAQ. Use when the brief asks for "pricing", "plans", "subscription tiers", or a "compare plans" page.

11.5K
98.9K
Файлы: 1
Открыть
Логотип nexu-io

Replit Deck

nexu-io
ОрганизацияПопулярный

For product and technical management work: turn PRDs, roadmaps, RFCs, architecture reviews, and retros into decision documents. Built around the core query "pm-feature-business-case-deck", with…

11.5K
98.9K
Файлы: 9
Открыть
Логотип nexu-io

Dcf Valuation

nexu-io
ОрганизацияПопулярный

Оценка публичных компаний методом дисконтированных денежных потоков и анализ внутренней стоимости. Используйте, если в запросе упоминаются DCF, справедливая стоимость, внутренняя стоимость, целевая цена, недооценённость или переоценённость либо…

11.2K
96.7K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇