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

Implementation of the BitBully::Board bitboard primitives. More...

#include "Board.h"
#include <algorithm>
#include <array>
#include <cassert>
Include dependency graph for Board.cpp:

Go to the source code of this file.

Namespaces

namespace  BitBully
 Top-level namespace for the BitBully Connect-4 engine.

Detailed Description

Implementation of the BitBully::Board bitboard primitives.

Most of the logic in here is mechanical bit manipulation derived from the encoding documented in Board.h. The win-detection routines are inspired by John Tromp's Game.c (https://github.com/gamesolver/fhourstones/blob/master/Game.c).

Definition in file Board.cpp.