Global

Members

(constant) IntersectionState

交点の状態を表す列挙型です。
Source:

(constant) SearchMode

探索モードの列挙型です。
Source:

(constant) X_LABELS

x座標ラベル文字列です。
Source:

Methods

argmax(obj)

objの中の最大値のキーを返します。 配列にもMapインスタンスにも使えます。
Parameters:
Name Type Description
obj Object
Source:

argsort(array, second, reverse)

arrayをソートした時のインデックス配列を返します。 secondを与えると、arrayの値が等しい時、secondで比較します。
Parameters:
Name Type Description
array Array.<number>
second Array.<number>
reverse bool
Source:

evaluatePlugin(b)

アプリ特有のevaluatePlugin関数です。 thisはMCTSのインスタンスです。
Parameters:
Name Type Description
b Board
Source:

featureIndex(rv, f)

ニューラルネットワークの入力のインデックスを計算します。
Parameters:
Name Type Description
rv UInt16 碁盤の交点の線形座標
f Integer フィーチャー番号
Source:

i18nSpeak(message)

Parameters:
Name Type Description
message string
Source:

(async) main()

碁盤サイズを受け付け、エンジンを生成し、対局を開始します。 碁盤サイズとエンジンは再対局の際に再利用します。
Source:

mostCommon(array)

arrayの中の最頻出要素を返します。
Parameters:
Name Type Description
array Array
Source:

random(min, max)

与えられた範囲の整数乱数を返します。 引数を省略すると符号付き32ビット整数の乱数を返します。
Parameters:
Name Type Description
min Integer
max Integer
Source:

setLoadingBar(percentage)

ウェイトをロードする際のプログレスバーを更新します。
Parameters:
Name Type Description
percentage number
Source:

shuffle(array)

Parameters:
Name Type Description
array Array
Source:

softmax(input, temperature) → {Float32Array}

温度パラメータありのソフトマックス関数です。
Parameters:
Name Type Description
input Float32Array
temperature number
Source:
Returns:
Type
Float32Array

speak(text, lang, gender)

Parameters:
Name Type Description
text string
lang string
gender string
Source:

(async) startGame(size, engine)

指定された碁盤サイズとエンジンで対局を繰り返します。 手番と持ち時間は対極の都度受け付けます。
Parameters:
Name Type Description
size Integer
engine AZjsEngine
Source: