Method | Description | |
---|---|---|
BoardFromPositionID ( string position_id, string &error ) : |
||
BoolListToInt ( IEnumerable |
||
Command ( string s ) : string |
Sends a command to the gnubg and returns gnubg's response.
|
|
DoubleHint ( |
||
DoubleResponseHint ( |
||
Eval ( |
||
Exit ( ) : void |
Tries to close the gnubg process the "natural" way by using the exit command. If it doesn't exit in max 3000(ms), it kills the running process.
|
|
GnuBGIDToGameState ( string gnubg_id, string &error ) : |
||
GnuBg ( string path ) : System | ||
Hint ( |
||
MatchID ( |
TODO: Solve the "I'm sorry, but SetMatchID cannot handle positions where a double has been offered" bullshit.
|
|
PlayHint ( |
Assumes dice have been rolled and game is still going.
|
|
PlayHint ( |
||
ResignResponseHint ( |
||
SetGameState ( |
Doesn't use the match id for setting up the position.
|
|
Start ( ) : void | ||
ToPositionID ( |
Method | Description | |
---|---|---|
GetDoubleHint ( |
||
MatchID ( int die1, int die2, int turn, int resigned, int doubled, int move, int cube_owner, int crawford, int match_to, int score1, int score2, int cube, int gamestate ) : string | ||
ParseDoubleAction ( string hint ) : DoubleAction | ||
ParseDoubleResponse ( string hint ) : |
||
ParseMoveHint ( string move_string, int &count, int total_hints, int dice, |
||
ParseMoveHints ( string hints, int dice, |
||
ParseResignResponse ( string hint ) : |
||
Set0PlyEvaluation ( ) : void | ||
Set0PlyEvaluation ( double noise ) : void | ||
Set2PlyEvaluation ( ) : void | ||
SetBoardSimple ( |
Gnubg treats positive counts as for the player on turn, and negative for the other. The first slot is the captured count for the player on turn, last slot is for the capture count of the other. Gnubg calculates the finished pieces for both players automatically. 26 integers are represented the following way: #Captured count for the player on roll# #Slot 1# ... #Slot 24# #Captured count for the other player# The slots start from the home board of the player on roll.
|
|
SetOptions ( ) : void |
public static BoardFromPositionID ( string position_id, string &error ) : |
||
position_id | string | |
error | string | |
return |
public static BoolListToInt ( IEnumerable |
||
bools | IEnumerable |
|
return | int |
public DoubleHint ( |
||
gamestate | ||
return |
public DoubleResponseHint ( |
||
gamestate | ||
return |
public Eval ( |
||
gamestate | ||
return |
public static GnuBGIDToGameState ( string gnubg_id, string &error ) : |
||
gnubg_id | string | |
error | string | |
return |
public Hint ( |
||
gamestate | ||
return | string |
public static MatchID ( |
||
gamestate | ||
return | string |
public PlayHint ( |
||
gamestate | ||
max_hints | int | |
return | List |
public PlayHint ( |
||
gamestate | ||
return |
public ResignResponseHint ( |
||
gamestate | ||
return |
public SetGameState ( |
||
gamestate | ||
return | void |
public static ToPositionID ( |
||
board | ||
player_on_roll | int | |
return | string |