canAttackInNMoves.cc
Go to the documentation of this file.
00001 #include "osl/move_classifier/canAttackInNMoves.h"
00002 #include "canAttackInThreeMovesTable.h"
00003 
00004 bool
00005 osl::move_classifier::canAttackInThreeMoves (Player player,
00006                                              Ptype ptype,
00007                                              Square myPos,
00008                                              Square opKingPos)
00009 {
00010   return canAttackInThreeMovesTable
00011     [ptype]
00012     [myPos.squareForBlack(player).index()]
00013     [opKingPos.squareForBlack(player).index()];
00014 }
00015 // ;;; Local Variables:
00016 // ;;; mode:c++
00017 // ;;; c-basic-offset:2
00018 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines