リファレンス
オーヘル
import { … } from "@johnmorrisdotca/toranpu/oh-hell";
最小化と gzip 圧縮をしたサイズは 3.2 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Oh Hell: its rules, its computer player and its saved-game format.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
chooseOhHellBid | 関数 | The bid nearest what the hand is worth, among those allowed. |
dealerOf | 関数 | The seat that deals this deal: the first seat, then round to the left. |
dealPoints | 関数 | What a seat scores for a deal: ten and its bid for exactly what it bid, nothing otherwise. |
dealSizes | 関数 | The cards dealt to each seat in each deal of a game of this length: up to seven, and back down in the long game. |
decodeOhHell | 関数 | Text read back into the game of Oh Hell it records, by playing every move again through the rules; null for anything they cannot play out. |
encodeOhHell | 関数 | A game of Oh Hell as text: its table, its seed and its moves, never a hand. |
OH_HELL_MOST_CARDS | 定数 | The most cards dealt to a hand of Oh Hell: seven. |
OH_HELL_RULES | 定数 | Oh Hell as one CardGameRules: everything a table asks of the game. |
ohHellBids | 関数 | The bids open to the seat to bid: nought to the cards in hand, less the one a dealer may not make. |
ohHellComputer | 関数 | The move a computer in the seat to play makes: always one the rules allow. |
OhHellDealScore | 型 | What one finished deal did: each seat's bid, the tricks it took, and what it scored. |
OhHellGame | 型 | A GAME OF OH HELL: its table and moves (what is kept, KeptCardGame), and everything the moves make. |
ohHellHeight | 関数 | A card's height in a trick: ace high. |
OhHellMove | 型 | A bid of tricks, nought up to the cards in hand, or one card played to the trick. |
ohHellMoves | 関数 | Every move the seat to play may make now; none once the game is over. |
OhHellPhase | 型 | Bidding the exact number of tricks each seat will take, playing the deal out, or the game over. |
OhHellPlay | 型 | One card laid, and whose it was. |
ohHellPlayable | 関数 | The cards the seat to play may lay: the suit led if it holds any. |
ohHellTrickWinner | 関数 | Who takes a trick: the highest trump, or else the highest card of the suit led. |
ohHellView | 関数 | The part of the game the seat to play can see, which is all its computer is given. |
OhHellView | 型 | A COMPUTER AT THE OH HELL TABLE. |
ohHellWinners | 関数 | The highest score after the last deal: every seat that has it. |
ohHellWorth | 関数 | The tricks a hand should take with these trumps, roughly. |
playOhHell | 関数 | The game after that move, with the move added to its record, or null for a move the rules refuse. |
sortOhHell | 関数 | A hand as a player holds it: by suit, trumps last, high cards to the right. |
startOhHell | 関数 | A new game of Oh Hell for these players (one name a seat) at this size, dealt from the seed dealt, or null for a table Oh Hell is not offered for. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。