@hanabi-live/game

Enumerations

CardStatus
ClueType
EndCondition
PaceRisk
StackDirection
VariantModifier

Interfaces

ActionCardIdentity
ActionClue
ActionDiscard
ActionDraw
ActionEditNote
ActionGameOver
ActionNoteList
ActionNoteListPlayer
ActionPlay
ActionPlayerTimes
ActionReceiveNote
ActionSetEffMod
ActionStrike
ActionTurn
CardIdentity
CardNote
CardState
Character
Color
ColorClue
GameMetadata
GameState
LogEntry
MsgColorClue
MsgRankClue
Options
RankClue
SpectatorNote
StateColorClue
StateRankClue
StateStrike
StatsState
Suit
SuitJSON
TurnState
Variant
VariantDescription
VariantJSON

Type Aliases

BasicRank
CardOrder
Clue
ColorIndex
GameAction
MsgClue
NoteAction
NumPlayers
NumSuits
PlayerIndex
Rank
RankClueNumber
StateClue
SuitIndex
SuitRankMap
SuitRankTuple

Variables

ALL_CARD_RANKS
ALL_RESERVED_NOTES
BLANK_NOTES
cardIdentity
cardOrder
CHOP_MOVED_NOTES
CLUED_NOTES
colorIndex
COLORS_MAP
DEFAULT_CARD_RANKS
DEFAULT_CLUE_RANKS
DEFAULT_FINISHED_STACK_LENGTH
DEFAULT_PLAYER_NAMES
DEFAULT_VARIANT_NAME
defaultOptions
EXCLAMATION_MARK_NOTES
FINESSED_NOTES
KNOWN_TRASH_NOTES
MAX_CARDS_IN_A_DECK
MAX_CLUE_NUM
MAX_PLAYERS
MAX_STRIKES
MAX_SUITS_IN_A_VARIANT
MIN_PLAYERS
NEEDS_FIX_NOTES
numPlayers
options
playerIndex
QUESTION_MARK_NOTES
rank
rankClueNumber
REVERSE_MODIFIER
START_CARD_RANK
SUIT_DELIMITER
SUIT_MODIFIER_DELIMITER
SUIT_MODIFIERS
SUIT_REVERSED_SUFFIX
suitIndex
SUITS_MAP
UNCLUED_NOTES
VALID_CLUE_COLOR_INDEXES
VALID_NUM_PLAYERS
VALID_PLAYER_INDEXES
VALID_SUIT_INDEXES
VARIANT_DELIMITER
VARIANT_MODIFIER_SET
VARIANT_NAMES

Functions

actionCardIdentity
canCardPossiblyBeFromCluesOnly
canCardPossiblyBeFromEmpathy
cardDeductionReducer
cardPossibilitiesReducer
cardsReducer
colorClue
createVariant
ddaReducer
discard
doesVariantExist
draw
gameReducer
getAdjustedClueTokens
getAllDiscardedSetForSuit
getCardName
getCardsGotten
getCardsGottenByNotes
getCardSlot
getCardsPerHand
getCardStatus
getCharacter
getCharacterNameForPlayer
getChopIndex
getClueName
getCluesStillUsable
getCluesStillUsableNotRounded
getClueText
getColorForPrismCard
getDefaultMetadata
getDefaultVariant
getDiscardClueTokenValue
getDiscardHelpers
getDiscardText
getDoubleDiscardCard
getEfficiency
getEfficiencyFromGameState
getEndGameLength
getEndTurn
getFutureEfficiency
getGameOverText
getGoesFirstText
getInitialCardState
getInitialGameState
getInitialGameStateTest
getInitialTurnState
getMaxScorePerStack
getMinEfficiency
getNewClueTokensAfterAction
getNextPlayableRanks
getNextPlayerIndex
getNumCopiesOfCard
getNumDiscardedCopiesOfCard
getPace
getPaceRisk
getPlayerName
getPlayText
getStackDirection
getStackStartRank
getStartingCluesUsable
getStartingDeckSize
getStartingPace
getSuit
getSuitAbbreviationForVariant
getSuitCompleteClueTokenValue
getTotalCardsInDeck
getUnadjustedClueTokens
getUppercaseSuitAbbreviationsForVariant
getVariant
getVariantByID
hasReversedSuits
isAllCardPossibilitiesTrash
isAtMaxClueTokens
isCardClued
isCardCritical
isCardDiscarded
isCardInPlayerHand
isCardNeededForMaxScore
isCardOnChop
isCardPlayed
isCardPotentiallyPlayable
isCardTouchedByClue
isCardTouchedByClueColor
isCardTouchedByClueRank
isColorMute
isDualColor
isHandLocked
isHardVariant
isInitialDealFinished
isNumberMute
isValidNumPlayers
isValidPlayerIndex
isValidRankClueNumber
knownTrashReducer
millisecondsToClockString
msgClueToClue
newColorClue
newRankClue
play
rankClue
reversibleGetMaxScorePerStack
reversibleIsCardCritical
reversibleIsCardNeededForMaxScore
shouldApplyClue
shouldEndTurnAfterClue
shouldEndTurnAfterDraw
shouldPlayOrderInvert
shouldSeeSlot2CardIdentity
statsReducer
strike
sudokuGetMaxScorePerStack
sudokuIsCardNeededForMaxScore
sudokuWalkUpAll
turnReducer