, , , , .
1. .
2. .
3. , .
. , , . , , . F , , :
;
;
, ;
, ;
( ) .
, . , ; , , , , , . , . , .
22.5.3.
Advice Language . . . . , . , , -
II, Prolog
" ". , .
Advice Language, . Advice Language 0, AL0. AL0, Prolog.
|
|
AL0 . - . : RuleName:: if Condition then AdviceList
Condition , , and, or, not, a AdviceList . "edgerule" ( ), " ". edge_rule::
if their king on edge and our king close then [ mate in 2F squeeze,
approach, keeproom, divide]. _ _ _
, , ( , ), : ".mate_irJ_2", "squeeze", "approach", "keeproon", "divide". : ; , "" , .. , Prolog.
Prolog advice(AdviceName,
BetterGoal: HoldingGoal: Os_Move_Constraints: Them_Move_Constraints).
, and, or, not. , and then, and , a then . , : MCI then MC2
, 1, , 2.
, 2 " ", , :
advice (mate in 2, mate: not rooklost: _
(depth - 0) and legal then (depth - 2} and checkmove: (depth - 1) and legal).
mate (), not rooklcst ( ). , ( ) , 2 ( ) . . : 1.
22. 545
: , , ; .. : Pos ; Pos , , Pos . , , Pos. , , .
|
|
, . , . , , , . . .
. AL0 , , , .