foochu / bgweb-api

Backgammon Web API
MIT License
9 stars 1 forks source link

Cube evaluation (round 2) #5

Open amlwwalker opened 3 months ago

amlwwalker commented 3 months ago

Hey @foochu hope you're well - been a while!

I was trying to align your code with the GNUBG code to understand what is required to implement the AI deciding whether to double (cube) and take/drop the cube.

I notice here

https://github.com/foochu/bgweb-api/blob/main/internal/gnubg/gnubg.go#L47

and here

The concept of a _CubeInfo object exists. I think you need to do this to get GNUBG to tell you the best move to make, but i think the missing part is including whether that move is to double is the missing key here. Is that correct?

What are the chances you can help me get a cube decision out of the AI here? It would be the awesome missing piece to this project and if you could, in no order, requirement help me with....

I can try to then understand whats missing and whether i can tackle this. Any support/help really appreciated! Thank you