Created
October 25, 2016 03:36
-
-
Save dapperAuteur/8a70f8845642658539b21d6b107f34a7 to your computer and use it in GitHub Desktop.
This file contains 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
import { Map } from 'immutable'; | |
import { newGame, game } from './components/game/game'; | |
const setupGame = () => { | |
let game = newGame(); | |
const newState = new Map({}) | |
}; | |
export default function(currentState=new Map(), action) { | |
switch(action.type) { | |
case 'SETUP_GAME': | |
return setupGame(currentState); | |
} | |
return currentState; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment