chooseOhHellBid関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The bid nearest what the hand is worth, among those allowed.
インポート
import { chooseOhHellBid } from "@johnmorrisdotca/toranpu/oh-hell";
定義
function chooseOhHellBid(worth: number, allowed: readonly number[]): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
worth | number | The estimated number of tricks this hand can win. |
allowed | readonly number[] | The legal bids available to this player. |
戻り値
number
The bid nearest what the hand is worth, among those allowed.
例
import { chooseOhHellBid } from "@johnmorrisdotca/toranpu/oh-hell";
console.log(chooseOhHellBid(1.4, [0, 1, 2, 3]));1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。