UNPKG

@leofavre/memory-game-component

Version:

A memory game web component.

16 lines (14 loc) 445 B
export const INITIAL_STATE = { cards: [], revealed: [], matched: [], isInteractive: true, events: [] }; export const DISTRIBUTE_CARDS = 'DISTRIBUTE_CARDS'; export const REVEAL_CARD = 'REVEAL_CARD'; export const MATCH_CARDS = 'MATCH_CARDS'; export const HIDE_CARDS = 'HIDE_CARDS'; export const ALLOW_INTERACTION = 'ALLOW_INTERACTION'; export const DISALLOW_INTERACTION = 'DISALLOW_INTERACTION'; export const SEND_EVENT = 'SEND_EVENT';