You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all the moves returned via the HTPP API are optimized for money games (via get_move in web_api.rs)
All moves via the C-API are currently optimized for 1-pointers (via best_move in wildbg_api.rs)
In match games we might have different best moves, depending on whether the player should optimize for gammons and backgammons, or not. So we need HTTP parameters for that.
I propose to introduce two new optional parameters player-away and opponent-away (or x-away and o-away). Default value would be 0. If both values are 0, this would indicate money game. If both values are bigger than 0, this would indicate match play. So if we have a 7-pointer and the player on turn has 5 points and the opponent has 4 points, then player-away would be 2 and opponent-away would be 3.
Right now we only have logic for money game and one pointers, so right now we could return the values for 1-pointers once those HTTP parameters are not 0.
This task may need several PRs. Also the web crate might need some refactorings. The logic, which move is best should be handled in the crate logic, so that it could also be used by the C API one day.
The text was updated successfully, but these errors were encountered:
Currently all the moves returned via the HTPP API are optimized for money games (via
get_move
inweb_api.rs
)All moves via the C-API are currently optimized for 1-pointers (via
best_move
inwildbg_api.rs
)In match games we might have different best moves, depending on whether the player should optimize for gammons and backgammons, or not. So we need HTTP parameters for that.
I propose to introduce two new optional parameters
player-away
andopponent-away
(orx-away
ando-away
). Default value would be0
. If both values are0
, this would indicate money game. If both values are bigger than0
, this would indicate match play. So if we have a 7-pointer and the player on turn has 5 points and the opponent has 4 points, thenplayer-away
would be2
andopponent-away
would be3
.Right now we only have logic for money game and one pointers, so right now we could return the values for 1-pointers once those HTTP parameters are not
0
.This task may need several PRs. Also the
web
crate might need some refactorings. The logic, which move is best should be handled in the cratelogic
, so that it could also be used by the C API one day.The text was updated successfully, but these errors were encountered: