[][src]Module connect6::game

Implementation of Game Connect6

It defines the game connect6 and provides the algorithm to find the winner.

Examples

let mut game = Game::new();
let result = game.set((0, 0)).unwrap();
let winner = game.is_game_end();
assert_eq!(winner, Player::None);

Structs

Block

Swapable two Cumulative arrays for dynamic programming

Cumulative

Number of the continuous stones for each directions.

Game

Implementation of Game Connect6

Paint

Simple ascii buffer

SetResult

Result of setting stone

Enums

Path

Searching direction.

Player

enum Player, Black: -1, None: 0, White: 1

Functions

search

Algorithm for finding winner of the Connect6.