Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
lib
move_classifier
canAttackInNMoves.cc
Go to the documentation of this file.
1
#include "
osl/move_classifier/canAttackInNMoves.h
"
2
#include "
canAttackInThreeMovesTable.h
"
3
4
bool
5
osl::move_classifier::canAttackInThreeMoves
(
Player
player,
6
Ptype
ptype,
7
Square
myPos,
8
Square
opKingPos)
9
{
10
return
canAttackInThreeMovesTable
11
[ptype]
12
[myPos.
squareForBlack
(player).
index
()]
13
[opKingPos.
squareForBlack
(player).
index
()];
14
}
15
// ;;; Local Variables:
16
// ;;; mode:c++
17
// ;;; c-basic-offset:2
18
// ;;; End:
Generated on Sun Jul 21 2013 13:37:23 by
1.8.4