{"size": 1746, "ext": "js", "max_stars_repo_path": "client/store/cardsReducer.js", "max_stars_repo_name": "HagenGaryP/Casino_Royal", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/store/cardsReducer.js", "max_issues_repo_name": "HagenGaryP/Casino_Royal", "max_issues_repo_issues_event_min_datetime": "2021-03-10T16:44:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T12:33:35.000Z", "max_forks_repo_path": "client/store/cardsReducer.js", "max_forks_repo_name": "HagenGaryP/Casino_Royal", "max_forks_repo_forks_event_min_datetime": "2020-05-01T20:03:51.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-21T14:07:24.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 26.0597014925, "max_line_length": 136, "alphanum_fraction": 0.4530355097}
// ------------- WE CONSIDERED INCORPORATING REDUX TO STORE VALUES / CREATE ACTIONS, BUT WENT IN DIFFERENT DIRECTION -------------------
// // action types:
// const DEAL_CARDS = 'DEAL_CARDS' // for new game
// const DEALER_HIT_CARD = 'DEALER_HIT_CARD'
// const PLAYER_HIT_CARD = 'PLAYER_HIT_CARD'
// const STAY = 'STAY'

// // action creators
// const dealCards = (cards) => {
//   return {
//     type: DEAL_CARDS,
//     cards,
//   }
// }

// const dealerHit = () => {
//   return {}
// }

// const playerHit = () => {
//   return {}
// }

// const stay = () => {
//   return {}
// }

// // initial state
// const initialState = {
//   cards: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
//   dealerTotal: 0,
//   playerTotal: 0,
//   currCard: {},
// }

// // reducer
// export default function cardsReducer(state = initialState, action) {
//   switch (action.type) {
//     case DEAL_CARDS:
//       return
//     default:
//       return state
//   }
// }

// --------------------------------------------------------------------------------------------------------------------
// === BELOW IS FROM OUR ORIGINAL IDEA OF CARD MODEL (BROUGHT IN FROM DB AS REFERENCE NOW THAT MODEL HAS SINCE BEEN DELETED) ===
// --------------------------------------------------------------------------------------------------------------------
// const Card = db.define('card', {
//   suit: {
//     type: Sequelize.STRING,
//     allowNull: false,
//     validate: {
//       isIn: [['spades', 'hearts', 'clubs', 'diamonds']]
//     }
//   },
//   value: {
//     type: Sequelize.STRING,
//     allowNull: false,
//     validate: {
//       isIn: [['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']]
//     }
//   }
// })

// module.exports = Card
