C++ port of Reversi