Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling size 19x19 #11

Open
AbdallahS opened this issue Jun 16, 2022 · 1 comment
Open

Enabling size 19x19 #11

AbdallahS opened this issue Jun 16, 2022 · 1 comment

Comments

@AbdallahS
Copy link

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.

@cgao3
Copy link
Owner

cgao3 commented Jul 21, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants