[][src]Function connect6::policy::hash

pub fn hash(board: &Board) -> u64

generate hash value of board

Examples

let game = Game::new();
let hashed = hash(game.get_board());
assert_eq!(hashed, hash(&[[Player::None; BOARD_SIZE]; BOARD_SIZE]));