src/actions/play.js
/** Throw dices and create a hexagram */
Throw dices and create a hexagram
Throw dices and create a hexagram
function generateHexagram() {
  return (dispatch, getState) => {
    const kuas = times(6, IchingLookup.generateKua );
    dispatch( setPlayHexagram(kuas) );
    return Promise.resolve( kuas )
  };
}
function generateHexagram ( ) { return ( dispatch , getState ) => { const kuas = times ( 6 , IchingLookup . generateKua ) ; dispatch ( setPlayHexagram ( kuas ) ) ; return Promise . resolve ( kuas ) } ; }
Throw dices and create a hexagram
Throw dices and create a hexagram
// Throw 6 coins