GithubHelp home page GithubHelp logo

slotgame's Introduction

##Game Rule

  • 需要設計一個Slot Game,本系統已提供遊戲所需要的config
  • 已提供用戶自定輸入的function . 方便你測試
  • 你需要提供一個spin function . 內容是每次轉動5個軸 轉動到5個相同的 symbol 便賠相應賠率
  • output 的format 需要是json 格式如下:
  • 你需要使用git repo 去checkout source code. 完成後需要把source code commit 到你自己新的 repo

##相關資料:

  • playedSpin 相等於5個軸的結果(需要和config array position 一致)

##提供應用Function :

Rng.rng(min, max) 產生隨機數字

Example

"[{
 ""context"": {},
 ""event"": ""gameStart""
}, {
 ""context"": [63, 51, 2, 15, 8],
 ""event"": ""playedSpin""
}, {
 ""context"": [{
    ""symbol"": ""CUP"",
    ""num_of_sys"":5,
    ""context"": {
     ""Payline"": [1, 1, 1, 1, 1]
    },
    ""pay"": 900
   }
 ""event"": ""spinWin""
}, {
 ""context"": {},
 ""event"": ""gameEnd""
}]"

##中獎例子

CUP CUP CUP CUP CUP
  • 賠300

slotgame's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.