When a player starts a game, they are allocated 10 credits. Pulling the machine lever (rolling the slots) costs 1 credit. The game screen has 1 row with 3 blocks. For player to win the roll, they have to get the same symbol in each block. There are 4 possible symbols: cherry (10 credits reward), lemon (20 credits reward), orange (30 credits reward), and watermelon (40 credits reward). If the player keeps winning, they can play forever, but the house has something to say about that... There is CASH OUT button on the screen, but there's a twist there as well.
-
The project starts with the main.js file where the Playground.vue component is used, this is the base component. The logoSVG.vue component work is, showing SVG files.
-
The Constants of the project are defined here.
-
Here is some test code for the logic of the Playground.vue component methods.
npm install --force
npm run serve
npm run build
npm run test:unit
npm run lint
https://github.com/malihe1991/slot-machine-game.git