LibEdax class
main class which call libedax api with ffi.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeDll(
) → void - Close dll.
-
edaxBoardGetSquareColor(
Board board, int x) → int - Get square color. 0 = player, 1 = opponent, 2 = empty.
-
edaxBoardIsPass(
Board board) → bool - Check if current player should pass.
-
edaxBookCountBoardBestpath(
Board board, {required int playerColor, int playerLowerLimit = BookCountBoardBestPathLowerLimit.best, int opponentLowerLimit = BookCountBoardBestPathLowerLimit.best}) → CountBestpathResult - Count bestpath with book.
-
edaxBookDeviate(
int relativeError, int absoluteError) → void - Book deviate.
-
edaxBookFix(
) → void - Fix book.
-
edaxBookLoad(
String bookFile) → void - Load book.
-
edaxBookNew(
int level, int depth) → void - Create a new book.
-
edaxBookOff(
) → void -
Don't use book on
edaxGo
,edaxHint
,mode 2
. -
edaxBookOn(
) → void -
Use book on
edaxGo
,edaxHint
,mode 2
.
default is on. -
edaxBookRandomness(
int randomness) → void -
Set randomness on
edaxGo
,mode 2
.
default is 0. -
edaxBookSave(
String bookFile) → void - Book save.
-
edaxBookShow(
) → Position - Show book.
-
edaxBookStopCountBestpath(
) → void - Stop edaxBookCountBoardBestpath.
-
edaxBookStore(
) → void - Book store.
-
edaxBookVerbose(
int verbosity) → void - Set book verbosity.
-
edaxCanMove(
) → bool - Check if the current player can move.
-
edaxDisableBookVerbose(
) → void - Disable book_verbose not to get stdout by bprint in edax.
-
edaxEnableBookVerbose(
) → void - Enable book_verbose to get stdout by bprint in edax.
-
edaxGetBoard(
) → Board - Get the current board.
-
edaxGetBookMove(
) → List< Move> - Get book move list.
-
edaxGetBookMoveWithPosition(
) → MoveListWithPosition - Get book move list with position.
-
edaxGetBookMoveWithPositionByMoves(
String moves) → MoveListWithPosition - Get book move list with position by specified moves.
-
edaxGetCurrentPlayer(
) → int - Get the current player.
-
edaxGetDisc(
int color) → int - Get the current number of discs.
-
edaxGetLastMove(
) → Move - Get the last move.
-
edaxGetMobilityCount(
int color) → int - Get the legal move count.
-
edaxGetMoves(
) → String - Get current moves.
-
edaxGetOpponentPlayer(
) → int - Get the opponent player.
-
edaxGo(
) → void - Let edax move.
-
edaxHint(
int n) → List< Hint> - Get hint.
-
edaxHintNext(
) → Hint - Get a hint.
-
edaxHintNextNoMultiPvDepth(
) → Hint - Get a hint.
-
edaxHintPrepare(
) → void - Prepare to get hint.
-
edaxInit(
) → void - Init board.
-
edaxIsGameOver(
) → bool - Check if the current game is over.
-
edaxMode(
int mode) → void - Set mode.
-
edaxMove(
String move) → void - Play move.
-
edaxNew(
) → void - Init board based on setboard command.
-
edaxOpening(
) → String - Get the opening name of the current game, in English.
-
edaxOptionsDump(
) → void - Dump options.
-
edaxPlay(
String moves) → void - Play moves.
-
edaxPlayPrint(
) → void - Print play.
-
edaxRedo(
) → void - Redo move.
-
edaxRotate(
int angle) → void - Rotate.
-
edaxSetboard(
String board) → void - Set board from string.
-
edaxSetOption(
String optionName, String val) → void - Set option.
-
edaxStop(
) → void - Stop edax search process, and set mode 3.
-
edaxUndo(
) → void - Undo move.
-
edaxVersion(
) → void - print version.
-
edaxVmirror(
) → void - Flip vertical.
-
libedaxInitialize(
[List< String> args = const []]) → void - Initialize libedax.
-
libedaxTerminate(
) → void - Terminate libedax.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popCount(
int bit) → int - Count bit.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited