/draw-dice-game

Draw Dice Game - JS/Vue

Primary LanguageVue

Draw Dice Game

TODO:

  • 3D animation dice drawing
  • downloading spinner / drawing dice

Recruitment assignment


The task is to develop a simple game utilizing API http://roll.diceapi.com/ or https://deckofcardsapi.com/ .

Game rules:

  • Player has one dice/card at a time
  • There are two buttons that the player uses to decide whether the next card/dice number will be higher or lower
  • Once the player chooses one of the options, he/she gets 0.1 point for the correct answer and a new dice/card is shown
  • There should be 30 rounds of the game

Requirements:

  • The card/dice should be represented by a picture
  • History of all the rounds and results has to be created and shown
  • The number of remaining rounds and the sum of points have to be visible
  • Closing the app saves the current game
  • If the game is resumed, the player gets a question “Reload the previous game?”
  • If the player chooses “YES”, previously saved game is reloaded
  • If the player chooses “NO”, a new game starts
  • The project does not have time limitation, however it should not take more than a few hours
  • Any tools, frameworks, librialiers or packages can be used to complete the task
  • Submit the project the way you do when working with a team
  • This repository is created exclusively for your recruitment process and you can interact with it the way you like

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Please start CORS plugin in the browser or run browser with disabled protections

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.