Skip to contents

Game engine

State, moves, history, and accessors.

mxo_new_game()
Start a new multixoR game
mxo_move()
Apply a move to a game state
mxo_play()
Play a move described by one row of mxo_legal_moves()
mxo_legal_moves()
Enumerate the legal moves of a game state
mxo_undo()
Undo plies by replaying from a fresh game
mxo_replay()
Rebuild a game by replaying a history log
mxo_status()
Game status
mxo_is_terminal()
Test whether the game has ended
mxo_board()
Access a single board from the multiverse
mxo_timelines()
Timeline metadata as a tibble
mxo_to_move()
Player to move
mxo_config()
Game configuration
mxo_history()
History as a tibble
is_mxo_game()
Test whether an object is an mxo_game
mxo_format_ply()
Serialize a ply record to canonical notation
mxo_parse_ply()
Parse a ply notation string into a record
print(<mxo_game>) format(<mxo_game>)
Print a multixoR game
summary(<mxo_game>) print(<mxo_game_summary>)
Summarise a multixoR game
as_tibble.mxo_game()
Coerce a game to a tidy tibble of occupied cells

AI and evaluation

mxo_evaluate()
Heuristic evaluation of a multixoR position
mxo_search()
Negamax with alpha-beta pruning
mxo_mcts()
Light UCT Monte-Carlo Tree Search
print(<mxo_mcts_result>)
Print an mxo_mcts_result
mxo_win_prob()
Win estimate for a player from the current position
mxo_win_prob_curve()
Win-estimate curve along a game history
mxo_rate_moves()
Rate the legal moves of a position
mxo_ai_move()
Choose a move using a packaged difficulty knob

Simulation and strategy

mxo_policy()
Build a multixoR policy
is_mxo_policy()
Test whether an object is a multixoR policy
mxo_policy_move()
Apply a policy to choose a move
print(<mxo_policy>)
Print a multixoR policy
mxo_config_default()
Default config list (used by self-play / simulate)
mxo_self_play()
Play a single self-play game between two policies
print(<mxo_game_record>)
Print a self-play game record
as_tibble.mxo_game_record()
Coerce an mxo_game_record to a tidy per-ply tibble
mxo_simulate()
Batch self-play simulation
summary(<mxo_sim_result>) print(<mxo_sim_summary>)
Summarise a batch self-play result
print(<mxo_sim_result>)
Print an mxo_sim_result
mxo_opening_table()
Opening-cell win-rate table
mxo_policy_tournament()
Round-robin tournament between policies
mxo_branch_study()
Branch-frequency study
mxo_timeline_win_rate()
Cross-timeline win-rate stress test
mxo_make_calibration_data()
Extract calibration data from self-play
mxo_fit_calibration()
Fit a calibrator from calibration data
mxo_calibrator_predict()
Apply a calibrator to a numeric score
print(<mxo_calibrator>)
Print a calibrator

Visualisation

mxo_plot_board()
Render a single multiverse board
mxo_plot_multiverse()
Plot the entire multiverse
mxo_plot_threats()
Plot the threatened lines of a position
mxo_plot_win_prob()
Plot a win-probability curve
mxo_plot_eval()
Plot the heuristic-evaluation curve along a game
mxo_plot_opening()
Plot the openings heatmap
mxo_plot_tree()
Plot the branch tree of a multixoR game
autoplot(<mxo_game>)
Auto-render a multixoR game
autoplot(<mxo_sim_result>)
Auto-render a simulation result
autoplot(<mxo_game_record>)
Auto-render a self-play record

App and example data

mxo_run_app()
Launch the multixoR Shiny app
mxo_example_game()
A short example multixoR game