benzene-vanilla-cmake
benzene-vanilla-cmake copied to clipboard
Enabling size 19x19
Is it possible to enable board size 19x19?
I've tried adding the option -DSUPPORT_19x19
to the CMAKE_CXX_FLAGS, based on the configure file of benzene-1 , but I run into the following issue: src/util/Bitset.hpp
sets BITSETSIZE
to 384 which breaks BOOST_STATIC_ASSERT(BITSETSIZE <= 256);
from src/mohex/MoHexBoard.hpp
. If I comment out the assertion, the project compiles fine and the player seems to handle board size 13 to 15 well, but seems to enter into an infinite loop on board size 17 to 19 (which is not surprising, the assertion was there for a reason!).
I am more interested in getting a good solver to run than Monte Carlo player, so if the issue is specific to mohex but I can another component, then that'd be fine in my situation.
Hi Abdallah,
Seems SUPPORT_19x19 would only work for "wolve". If your interest is just the solver, probably using wolve is enough.
You can add this support by modifying the CMameLists.txt of the project root:
add_definitions(-DABS_TOP_SRCDIR="${top_srcdir}"
-DDATADIR="${pkgdatadir}"
-DNDEBUG
)
=>
add_definitions(-DABS_TOP_SRCDIR="${top_srcdir}"
-DDATADIR="${pkgdatadir}"
-DNDEBUG
-DSUPPORT_19x19
)
then,
cd build/
cmake ..
make
The build for mohex
would fail, but wolve should be fine. Then you can execute wolve
for the solver.