BitBully 0.0.78
A fast, perfect-play Connect-4 engine in modern C++
Loading...
Searching...
No Matches
bitbully_core.cpp File Reference

pybind11 bindings exposing the C++ engine to Python. More...

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl/filesystem.h>
#include <array>
#include <filesystem>
#include <vector>
#include "BitBully.h"
#include "Board.h"
#include "OpeningBook.h"
Include dependency graph for bitbully_core.cpp:

Go to the source code of this file.

Typedefs

using B = BitBully::Board
 Short-hand alias used throughout the binding definitions.

Functions

 PYBIND11_MODULE (bitbully_core, m)
 Define the bitbully_core extension module.

Detailed Description

pybind11 bindings exposing the C++ engine to Python.

Defines the bitbully_core extension module which wraps the three core C++ classes — BitBully::Board, BitBully::BitBully and BitBully::OpeningBook — as the Python types BoardCore, BitBullyCore and OpeningBookCore. The Python package adds higher-level conveniences on top of these primitives.

Definition in file bitbully_core.cpp.

Typedef Documentation

◆ B

using B = BitBully::Board

Short-hand alias used throughout the binding definitions.

Definition at line 27 of file bitbully_core.cpp.

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( bitbully_core ,
m  )

Define the bitbully_core extension module.

Exposes BitBully::Board, BitBully::BitBully and BitBully::OpeningBook to Python under the names BoardCore, BitBullyCore and OpeningBookCore. The module is loaded by import bitbully_core from the Python package.

Definition at line 37 of file bitbully_core.cpp.

Here is the call graph for this function: