Moddable Games Tools
games.moddable.tools/moddable-games-tools
15 tools for chess variant analysis, hex map generation, and board game utilities
- board_gallery_get — Get details of a specific board layout by ID
- board_gallery_search — Search the board gallery (335 rendered board layouts across 34 game families)
- board_gallery_stats — Get statistics about the board gallery (total boards, families, topologies)
- chess_analyze_position — [DEPRECATED — use play_suggest_move] Analyse a chess position. Removal: v1.0.0.
- chess_generate_puzzle — Get a random chess puzzle. Filter by variant, difficulty or theme. Not every variant puzzle carries themes; use chess_list_puzzle_types to see what the pool holds.
- chess_get_legal_moves — [DEPRECATED — use play_create_game + play_get_moves] Get legal moves for a chess position. Removal: v1.0.0.
- chess_get_opening_book — [REMOVED — engine#98] Opening book resolution is broken in Worker context. No replacement.
- chess_get_status — [DEPRECATED — use play_check_status] Get chess game status. Removal: v1.0.0.
- chess_list_puzzle_types — List available puzzle variants, themes, and per-variant counts from the puzzle pool
- chess_list_variants — [DEPRECATED — use play_list_variants] List chess variants. Removal: v1.0.0.
- chess_make_move — [DEPRECATED — use play_apply_move] Apply a move to a chess game. Removal: v1.0.0.
- chess_make_moves — [DEPRECATED — use play_make_moves] Apply a sequence of chess moves. Removal: v1.0.0.
- chess_render_svg — [DEPRECATED — use play_render_board] Render a chess position as SVG. Removal: v1.0.0.
- chess_validate_move — [DEPRECATED — use play_validate_move] Check if a chess move is legal. Removal: v1.0.0.
- coin_flip — Flip one or more coins, or pick from a list of choices
- colony_dice_odds — Calculate settlement dice probability for Colony/Catan-style resource numbers
- dice_odds — Calculate probability of meeting a target with a dice expression. Supports keep-high/low (4d6kh3).
- dice_roll — Roll dice using standard notation (e.g. 2d6+3, 4d8, d20). Supports comma-separated pools and keep-high/low (4d6kh3).
- game_deck_create — Create, shuffle, and optionally draw/deal from a card deck
- game_deck_deal — Shuffle and deal a custom deck of arbitrary named cards
- game_deck_list_types — List all available deck types with metadata
- game_jam_theme — Generate a random game jam theme combining mechanics and themes
- game_nukes_combat — Resolve a Nukes combat encounter between units
- game_score_tracker — Track scores for players in any game
- hex_compute_fov — Compute field of view from a hex position
- hex_export_svg — Generate a hex map and export as SVG
- hex_generate_map — Generate a hex map for a specific game and player count
- hex_get_info — Get info about a specific hex coordinate (terrain, neighbours, distance)
- hex_list_games — List all available hex map game types with configuration options
- hex_pathfind — Find shortest path between two hex coordinates
- jam_status — Get the current Mod Jam status (active jam, deadline, submissions)
- jam_timer — Get time remaining in the current Mod Jam
- jam_vote — Get voting status for the current Mod Jam
- nukes_setup_generator — Generate random territory/resource setup for a Nukes game
- oracle_ask — Ask the oracle a yes/no question with likelihood modifier
- oracle_encounter — Generate a tabletop RPG encounter with CR-appropriate monsters, terrain, and loot (D&D 5e or Pathfinder 1e)
- oracle_interpret — Resolve oracle cross-references. Given a result like "Action + Theme", follows references and returns expanded results
- oracle_list_games — List all supported RPG systems with oracle tables and entity data availability
- oracle_list_recipes — List all predefined scene recipes — curated multi-table compositions that produce coherent narrative prompts
- oracle_list_tables — List available oracle tables for a system
- oracle_roll — Roll on a random oracle table (Ironsworn, Starforged, Maze Rats, etc)
- oracle_scene — Generate a scene using oracle tables. With a recipe, rolls each table in the recipe, resolves cross-references, and composes a narrative sentence. Without, picks random tables.
- oracle_table_view — View the complete contents of an oracle table — all entries with roll ranges
- piece_gallery_get_set — Get full details and piece list for a specific set
- piece_gallery_search — Search the piece set gallery by name, style, or game type
- piece_gallery_stats — Get statistics about the piece gallery (total sets, styles, authors, game families)
- play_apply_move — Apply a move to the game and return the new state. Pass the move object exactly as returned by play_get_moves (format varies by family: chess uses {from,to}, go uses {coord} or {action:"pass"}).
- play_check_status — Check the current game status: whose turn it is, whether the game is over, and who won.
- play_create_game — Create a new game instance for a given family. Returns initial state to pass to subsequent calls. Variant can include flags like "grand+random" or "standard+drops".
- play_export_fen — Export the current board position as a FEN-style setup string, in the form the variant's own frontmatter declares its starting position. Card, tile and dice games have no board position to export.