1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
//! Implementation of Game Connect6
//!
//! It defines the game connect6 and provides the algorithm to find the winner.
//!
//! # Examples
//! ```rust
//! # extern crate connect6;
//! # use connect6::game::{Game, Player};
//! let mut game = Game::new();
//! let result = game.set((0, 0)).unwrap();
//! let winner = game.is_game_end();
//! assert_eq!(winner, Player::None);
//! ```
pub use self::game_impl::{Game, Paint, SetResult};
pub use self::player::Player;
pub use self::search_winner::{search, Block, Cumulative, Path};

mod game_impl;
mod player;
mod search_winner;