liberty8Table.cc

#include "osl/effect/liberty8Table.h"
#include "osl/boardTable.h"
#include "osl/stl/vector.h"
#include <iostream>
#include <iomanip>
#include <algorithm>
liberty8Table.ccのインクルード依存関係図

ソースコードを見る。

ネームスペース

namespace  osl
 

attackDefense.h


namespace  osl::effect
 

利きを局面に持たせるためのコード.


関数

static bool osl::effect::hasShortMove (Ptype ptype, int dx, int dy, int dx0, int dy0)
 黒の攻め方の駒ptype から dx, dyの位置にdirectMoveがあるか?
static bool osl::effect::hasLongMove (Ptype ptype, int dx, int dy, int dx0, int dy0)
 黒の攻め方の駒ptype から dx, dyの位置にInDirectMoveがあるか? ただし,隣で伸ばした先が8近傍内に無い場合は shortMoveにする また,目的のちょうど対称の時もshortMoveにする
static unsigned char osl::effect::shortMaskOf (Ptype ptype, int dx, int dy)
 黒の攻め方の駒ptype から dx, dyの位置にいる白玉の 近隣 Dir(白玉に白の目から見てDirの動き到達可能なマス) に 利きを持つ場合は dirToMask(Dir)が0, そうでない場合は1
static unsigned int osl::effect::directionOf (int dx, int dy)
 -dx, -dyの動きが黒に取って, dir であるときに 1<<dirを返す dx, dyは 8近傍の動きのみ許す
std::ostream & osl::effect::operator<< (std::ostream &os, LongEffect8 const &longEffect)
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:54:43 2010に生成されました。  doxygen 1.6.3