Struct usiagent::hash::KyokumenHash[][src]

pub struct KyokumenHash<T> where
    T: Add + Sub + BitXor<Output = T> + Rand + Copy + InitialHash,
    Wrapping<T>: Add<Output = Wrapping<T>> + Sub<Output = Wrapping<T>> + BitXor<Output = Wrapping<T>> + Copy
{ /* fields omitted */ }
Expand description

局面のハッシュ値を計算する。差分計算対応

Implementations

KyokumenHashの生成

メインハッシュを計算

Arguments
  • h - 現在のハッシュ
  • t - 手番
  • b - 手の適用前の盤面
  • mc - 手の適用前の持ち駒
  • m - 現在のハッシュに対して適用する指し手
  • obtained - 獲った駒

サブハッシュを計算

Arguments
  • h - 現在のハッシュ
  • b - 手の適用前の盤面
  • t - 手番
  • mc - 手の適用前の持ち駒
  • m - 現在のハッシュに対して適用する指し手
  • obtained - 獲った駒

ハッシュの初期値を計算

Arguments
  • b - 盤面
  • ms - 先手の持ち駒
  • mg - 後手の持ち駒

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.