Compile the C++ solver with:
makeStart the server locally:
./run.shThe server will be available at http://localhost:8080.
Example Request:
{
"board": [
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 2, 0, 0],
[0, 0, 0, 1, 1, 2, 0]
],
"current_player": 1,
"valid_moves": [0, 1, 2, 3, 4, 5, 6]
}ngrok http 8080