Published
Edited
Aug 23, 2022
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
handCheckerPh("1m-1m-3m-3m-7m-7m-4p-4p-6p-6p-2s-2s-7s-7s-9s-9s-9s")
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import {
mh,
maj,
mmj,
allTriplets,
allNumberTiles
} from "@maddievision/mahjong-library"
Insert cell
import {
checkStandard,
handChecker,
checkHandValid,
handStrToVec,
printActions,
sevenPairsActions,
allActions,
headActions
} from "@maddievision/mahjong-algorithms-2"
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
checkStandardPh = (vec) => checkHandValid(vec, allActions, headActionsPh)
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more