minimax_alpha_beta/lib.rs
1//! Solve any Two-player Minimax game using the
2//! Minimax algorithm with Alpha-Beta pruning.
3//! Also, where possible, a parallel processing
4//! implementation is provided.
5
6mod drivers;
7/// Contains sruct and necessary implementations
8/// for `TicTacToe`: a popular two-player game
9/// where one player places a symbol - 'X' and another
10/// player places a symbol - 'O' on a square grid
11/// with the objective of creating a streak of same
12/// symbols of length the size of the grid in any direction.
13///
14/// # Examples
15///
16/// ```
17/// use minimax_alpha_beta::tictactoe::TicTacToe;
18/// let mut tic_tac_toe = TicTacToe::create_game(3, None, None, None);
19/// tic_tac_toe.print_board();
20/// assert_eq!(tic_tac_toe.size, 3);
21/// assert_eq!(tic_tac_toe.default_char, '-');
22/// ```
23// mod tests;
24pub mod games;
25pub mod strategy;
26
27pub use drivers::*;