Open carsten-wenderdel opened 10 months ago
Not only Rust but als pseudo code would be appreciated. Important: you need to have the copyright, don't copy code from somewhere else.
For what it's worth, I implemented Janowski-style cubeful equity estimations for money in R, here. The file contains a list of functions, the relevant one is eq_money()
This will estimate cubeful equities as a function of:
See the documentation.
Using this function, it should be straightforward to deduce cube action: E.g. offer an initial double when the equity with the opponent holding the cube is more than half the equity with a centered cube.
I did some testing of this function, but it should still be considered in development. Seems to match what GNUBG and XG does.
I don't have experiece with Rust, so it's not easy for me to translate into that language. But happy to contribute if I can in any way.
Currently the implementation is quick and super dirty: Cube if the equity is between 0.4 and 0.6. Accept if the equity is below 0.5.
This could be done much better. The article https://bkgm.com/articles/Janowski/cubeformulae.pdf could be helpful.
Of course cube for match play would also be great to have, but money game should be easier.