HooverChessUtils_PgnReader 0.9.0
Loading...
Searching...
No Matches
Namespaces | Functions
lookup-utils.h File Reference
#include "chessboard-types.h"
#include <array>
#include <cstdint>
Include dependency graph for lookup-utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hoover_chess_utils
 
namespace  hoover_chess_utils::pgn_reader
 

Functions

template<typename U64Type >
const U64Type & hoover_chess_utils::pgn_reader::turnSpecificLookup (const std::array< U64Type, 2U > &array, Color turn) noexcept
 Piece attack tables.
 
template<typename U64Type , std::size_t N>
const U64Type & hoover_chess_utils::pgn_reader::turnSpecificArrayLookup (const std::array< std::array< U64Type, 2U >, N > &array, std::size_t i, Color turn) noexcept
 Optimized lookup for arrays indexed by general index and turn (side-to-move).