Skip to content

Slot Machine spin generator, as a command file for Laravel framework

License

Notifications You must be signed in to change notification settings

andreivips/slot-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Slot Machine spin generator

as a command file for Laravel framework

less dynamic setups or unrequired on this stage dependencies

file location:

slots\app\Console\Commands\Slot.php

command bind in slots\app\Console\Kernel.php:

  ...
  protected $commands = [
    Commands\Slot::class,
  ];
  ...

call in terminal (in app root):

php artisan slots:play

output example as JSON:

  {
    "board": [
      "j",
      "j",
      "k",
      "10",
      "bird",
      "10",
      "9",
      "bird",
      "monkey",
      "9",
      "dog",
      "dog",
      "9",
      "monkey",
      "9"
    ],
    "paylines": [
      {
        "0 3 6 9 12": 3
      }
    ],
    "bet_amount": 100,
    "total_win": 20
  }

©

About

Slot Machine spin generator, as a command file for Laravel framework

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages