Namespaces | Functions
liberty8Table.cc File Reference
#include "osl/effect/liberty8Table.h"
#include "osl/boardTable.h"
#include "osl/stl/vector.h"
#include <iostream>
#include <iomanip>
#include <algorithm>
Include dependency graph for liberty8Table.cc:

Go to the source code of this file.

Namespaces

namespace  osl
 

attackDefense.h


namespace  osl::effect
 

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


Functions

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)
std::ostream & osl::effect::operator<< (std::ostream &os, LongEffect8 const &longEffect)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines