{"push_id":890715638,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"9e5f4ae59378b840cb340f78fc8c3bfdedca2abe","before":"356bacca361c19222346eaacb7280725348ff5a5","commits":[{"sha":"9e5f4ae59378b840cb340f78fc8c3bfdedca2abe","author":{"email":"18b9334e55f34d0b93e7e42f94c29a7629592648@gmail.com","name":"Ben White"},"message":"feat(player/hand reducers): Add player reducer. Adjust data structure. Add actions\n\nSeveral changes occurred in this commit as the complexity expanded to handle players and decks and their relationship (later this will be fleshed out further to keep these entities independent with references to each other instead of creating increasingly complex hierarchical structures).\n\n- `playerReducer` introduced to handle adding a player to the game, selecting a deck, drawing a hand and, at the moment, playing a card. The playing a card logic is probably in the wrong place at the moment, so some thought will be devoted to where that and other actions like it should live.\n- `handReducer` was introduced to randomly pick 10 starting cards from the player's deck. later this will need to involve input from the user, since they will have 2 available redraws, but for now it just gives you 10.\n- `cardReducer` was updated to operate on a flat array of cards instead of an object with multiple arrays\n- `playerFieldComponents` was updated to render specific components depending on the row type (eg - 'hand' is a different row than the others)\n- `cardComponents` now has two available components, one just to display a card and a container component to handle clicks on the card, dispatching an event to play the card onto the player field. (later this will display a prompt to play the card or cancel, and a larger version of the card will display). This reducer also now combines player selected deck with neutral cards before constucting the card objects.\n\nNext up:\n- separating decks from players and instead associate sibling elements, similar to a joint table","distinct":true,"url":"https://api.github.com/repos/bensbigolbeard/GwentApp/commits/9e5f4ae59378b840cb340f78fc8c3bfdedca2abe"}]}