Created
July 25, 2018 15:16
-
-
Save cazala/705acfe6619498d5183813b078819b4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/modules/match/actions.js | |
export const REGISTER_PLAYER = 'chess/match/register_player' | |
export const UNREGISTER_PLAYER = 'chess/match/unregister_player' | |
export const CHECKMATE = 'chess/match/checkmate' | |
export const registerPlayer = (playerId, isWhite) => ({ | |
type: REGISTER_PLAYER, | |
playerId, | |
isWhite | |
}) | |
export const unregisterPlayer = playerId => ({ | |
type: UNREGISTER_PLAYER, | |
playerId | |
}) | |
export const checkmate = () => ({ | |
type: CHECKMATE | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment