Fast ladder algorithm, computes ladders and snapbacks. More...
#include "GoBoard.h"
#include "SgBoardColor.h"
#include "GoModBoard.h"
#include "SgPoint.h"
#include "SgPointSet.h"
#include "SgVector.h"
Go to the source code of this file.
Classes | |
class | GoLadder |
This class contains all the ladder-specific stuff. More... | |
Namespaces | |
namespace | GoLadderUtil |
Enumerations | |
enum | GoLadderStatus { GO_LADDER_UNKNOWN, GO_LADDER_CAPTURED, GO_LADDER_UNSETTLED, GO_LADDER_ESCAPED } |
Functions | |
bool | GoLadderUtil::Ladder (const GoBoard &board, SgPoint prey, SgBlackWhite toPlay, bool fTwoLibIsEscape=false, SgVector< SgPoint > *sequence=0) |
Return whether or not the block at 'prey' can be captured in a ladder when 'toPlay' plays first. | |
GoLadderStatus | GoLadderUtil::LadderStatus (const GoBoard &bd, SgPoint prey, bool fTwoLibIsEscape=false, SgPoint *toCapture=0, SgPoint *toEscape=0) |
Return whether the block at 'prey' is captured, escaped, or unsettled with regards to capture in a ladder. | |
bool | GoLadderUtil::IsProtectedLiberty (const GoBoard &bd, SgPoint liberty, SgBlackWhite col, bool &byLadder, bool &isKoCut, bool tryLadder=true) |
Check if this is a chain connection point, or a ko cut point. | |
bool | GoLadderUtil::IsProtectedLiberty (const GoBoard &bd, SgPoint liberty, SgBlackWhite col) |
Simple form, calls the complex form and ignores bool results. | |
SgPoint | GoLadderUtil::TryLadder (const GoBoard &bd, SgPoint prey, SgBlackWhite firstPlayer) |
try to escape/capture prey block Possible return values:
|
Fast ladder algorithm, computes ladders and snapbacks.
Definition in file GoLadder.h.
enum GoLadderStatus |
Definition at line 22 of file GoLadder.h.