dealPointsfunction
What a seat scores for a deal: ten and its bid for exactly what it bid, nothing otherwise.
Import it
import { dealPoints } from "@johnmorrisdotca/toranpu/oh-hell";
Definition
function dealPoints(bid: number, tricks: number): number
Parameters
| Name | Type | Description |
|---|---|---|
bid | number | The bid being checked or scored. |
tricks | number | The number of tricks won. |
Returns
number
What a seat scores for a deal: ten and its bid for exactly what it bid, nothing otherwise.
Examples
import { dealPoints } from "@johnmorrisdotca/toranpu/oh-hell";
console.log(dealPoints(2, 2));12What it prints (run when this page was built)