States Game This javascript project provides an object, containing a question and three possible answers, for a potential American states text-based quiz game. The basic concept was to assist younger or inexperienced keyboard users in learning alphanumeric keys. To this end, this was meant for desktop use with a standard keyboard. I built an index page to give some UI love to the returned object. Scripts to call: statesData.js js/statesGame.js Simply put, there is a function inside 'statesData.js' returns an object of all states and their data. The 'statesGame.js' script is the main driver. It uses three randomizer functions to pick three random states, pick one of them to use as the correct answer, pick three random alphanumeric characters for answer selection, pick one of four question formats, and to display the possible answers in a random order. The returned Q&A object is logged in the browser console. To Do For those interested in building the full game out, or at least improving things: [ ] Build proper UI game out. - Duh. Includes snazzy UX, a way to keep score, a timer, etc. Bells and whistles stuff that one would expect with quiz games. [ ] Explore refactoring how the states data is delivered. - It's loaded via a return objects, not JSON, etc. I did it this way initially because the load time wasn't significant enough to warrant an AJAX call, and the data is essentially all the answers. Though people can just load the js file into a browser tab and view it, it wouldn't show up as received data in an inspector. Which brings me to... [ ] Obfuscate the correct answer in the object and/or code itself. - I have the correct answer explicitly delivered in the return object. There's lots of less clunky ways to achieve this. [ ] Array of states in original, returned data object aren't spliced out. - When a new question is generated, the selected state and its information isn't removed from the original object. Though unlikely, this can result in some repeating questions, depending on the design of the game.