_Descend() is only used within STemWin.
 
Symbols
loading...
Files
loading...

_Descend() function

Minimax search for the best possible move with alpha-beta pruning

Syntax

static I32 _Descend(int depth,     I32 alpha,     I32 beta,     int firstMove);

Arguments

depth

board depth

alpha

current Move

beta

previous Move

firstMove

first Move index

Return value

best move

References

LocationReferrerText
games_win.c:444
static I32 _Descend(int depth, I32 alpha, I32 beta, int firstMove) {
games_win.c:475_Descend()
alt = _Descend(depth - 1, alpha, beta, 0);
games_win.c:537_PlayerAI_SmartGecko()
_Descend(depth, -NOLIMIT, NOLIMIT, 1);

Call Tree

Functions calling _Descend()
Functions called by _Descend()
all items filtered out
_Descend()
Data read by _Descend()
Data written by _Descend()
_Descend()::pBoard
_Descend()::nextBoard
_Descend()::x
_Descend()::y
_Descend()::moves
_Descend()::i
_Descend()::alt
_Descend()::maximize
all items filtered out
_Descend()
_Descend()::pBoard
_Descend()::nextBoard
_Descend()::x
_Descend()::y
_Descend()::moves
_Descend()::i
_Descend()::alt
_Descend()::maximize
all items filtered out
Type of _Descend()
_Descend()
all items filtered out