A dynamically generated Magic the Gathering card guessing game where you have to guess the name of the card from the artwork. How well do you remember your Mana Flare from your Mana Clash?
First the game shows you a random card from the selected edition:
As the time ticks down, the progress bar will indicate remaining time. If the time runs out, or you give up, it will reveal the card.
After answering a set of questions, it will assign the player a ranking according to their proficiency.
You can also play the game online here: MTG Quiz
- Node.js (v12 or higher)
- npm (comes with Node.js)
First, install the project dependencies:
npm installBuild the production version:
npm run buildClean the build directory:
npm run cleanClean and rebuild:
npm run clean-buildThe project uses Gulp for build tasks. The build process:
- Minifies JavaScript files (main.js, editions.js)
- Minifies CSS files
- Minifies JSON card data files
- Copies all assets and libraries to the build directory
To serve the built files locally for testing:
npm run serveThis will start a Python HTTP server on port 8000. Open http://localhost:8000 in your browser.
Alternatively, you can use any static file server of your choice to serve the build/ directory.
After running npm run build, the entire build/ directory contains all the files needed for deployment. Simply upload the contents of the build/ directory to your web server.
- Ability to post high-scores
- Account for on-screen keyboard for mobiles
- Fix autocomplete on mobiles
- Hyperlink canvas to link to WOTC site for card
- Retry on images that have been removed by WOTC (using md5 hash b0284f3a137f1d8040f3a6d5055b307a)


