Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
boardstate::ZobristCalculatorFactory< KeyType, G > Class Template Reference

#include <zobrist_factories.hpp>

Collaboration diagram for boardstate::ZobristCalculatorFactory< KeyType, G >:
Collaboration graph

Public Types

using ZobristCalculatorType = boardstate::ZobristCalculatorForConcepts< KeyType >
 

Public Member Functions

std::shared_ptr< ZobristCalculatorTypeCreateRegisteredCalculator (std::shared_ptr< G > game_board, uint32_t prng_seed=std::random_device{}())
 Creates a new ZobristCalculator, initializes its state using pre-existing GameBoard, and registers it with the GameBoard.
 
std::shared_ptr< ZobristCalculatorTypeCreateUnregistereCalculator (uint32_t prng_seed=std::random_device{}())
 

Detailed Description

template<typename KeyType, BoardStateCalculatorRegistryConcept G>
class boardstate::ZobristCalculatorFactory< KeyType, G >

Definition at line 20 of file zobrist_factories.hpp.

Member Typedef Documentation

◆ ZobristCalculatorType

template<typename KeyType , BoardStateCalculatorRegistryConcept G>
using boardstate::ZobristCalculatorFactory< KeyType, G >::ZobristCalculatorType = boardstate::ZobristCalculatorForConcepts<KeyType>

Definition at line 22 of file zobrist_factories.hpp.

Member Function Documentation

◆ CreateRegisteredCalculator()

template<typename KeyType , BoardStateCalculatorRegistryConcept G>
std::shared_ptr< ZobristCalculatorType > boardstate::ZobristCalculatorFactory< KeyType, G >::CreateRegisteredCalculator ( std::shared_ptr< G >  game_board,
uint32_t  prng_seed = std::random_device{}() 
)
inline

Creates a new ZobristCalculator, initializes its state using pre-existing GameBoard, and registers it with the GameBoard.

Definition at line 25 of file zobrist_factories.hpp.

◆ CreateUnregistereCalculator()

template<typename KeyType , BoardStateCalculatorRegistryConcept G>
std::shared_ptr< ZobristCalculatorType > boardstate::ZobristCalculatorFactory< KeyType, G >::CreateUnregistereCalculator ( uint32_t  prng_seed = std::random_device{}())
inline

Definition at line 40 of file zobrist_factories.hpp.


The documentation for this class was generated from the following file: