R/detect.R
detect.Rd
Detect specific tiles
tile2rank(x) tile2suit(x) is_fulou(x) is_tsumogiri(x) is_lizhi(x) is_suit(x, suit = c("m", "p", "s", "z")) is_yaojiu(x, negate = FALSE) is_zhongzhang(x) is_suzhi(x, suzhi = c("23", "34", "45", "56", "67", "78"))
A character vector.
A string scalar. Either "m", "p", "s", or "z".
A logical scalar.
A string scalar. Either "23", "34", "45", "56", "67", or "78".
For tile2rank and tile2suit: a character vector (an empty string for "_").
tile2rank
tile2suit
For other functions: a logical vector.