minimax

Crates.iominimax
lib.rsminimax
version0.5.3
sourcesrc
created_at2015-09-27 00:32:07.037626
updated_at2023-11-27 19:30:03.654406
descriptionGeneric implementations of Minimax.
homepage
repositoryhttps://github.com/edre/minimax-rs
max_upload_size
id3116
size150,467
Eric Roshan-Eisner (edre)

documentation

https://docs.rs/minimax

README

minimax-rs - Generic implementations of Minimax in Rust.

Build Status Crates.io Documentation

About

This library provides interfaces that describe:

  1. the rules for two-player, perfect-knowledge games;
  2. methods of evaluating particular game states for a player; and
  3. strategies for choosing moves for a player.

This crate implements multiple different strategies, so that any combination of custom evaluators and strategies can be tested against each other. These include single- and multi-threaded algorithms using alpha-beta pruning, iterative deepening, and transposition tables. There is also a basic implementation of multi-threaded Monte Carlo Tree Search, which does not require writing an evaluator.

Example

The ttt and connect4 modules contain implementations of Tic-Tac-Toe and Connect Four, demonstrating how to use the game and evaluation interfaces. test shows how to use strategies.

Commit count: 168

cargo fmt