Giter Site home page Giter Site logo

merl's Introduction

Merl

模擬選秀系統

Architecture

  • sails.js, 一個基於Nodejs的框架
  • Socket.io, 用以達成即時通訊
  • EJS, 產生頁面

Development

  • 修改connection.js裡的host, database, username和password
  • 修改http.js裡的clientID, clientSecret和callbackURL, 若要測試Facebook或Google+登入的話。
  • sails lift, node app.js, pm2 start app.js, forever start app.js(如果使用pm2或forever)啟動server, 預設網址為localhost:1337

Configurations

Component

StageManager.js

使用無限狀態機Finite State Machine)來控制選秀流程,參考StateManager.js

RoundIterator.js

輔助StageManager.js控制輪次的進行,判斷選秀是否終止等,參考RoundIterator.js

TeamManagerRelation

控制使用者所代表的隊伍,參考TeamManagerRelation

Models

  • OfficialDraft 官方選秀
    • Draft 依照CPBL官方選秀產生的模擬選秀
  • Round 輪次
    • IgnoreRound 某隊已放棄的輪次
  • Team 隊伍
  • Manager 使用者代表的隊伍
  • Candidate 候選球員
    • IgnoreCandidate 某隊不能選的球員
    • PreSelectedCandidate 預先被某隊選走的球員
  • Pick 投單
  • Result 模擬選秀的結果

Contribution

  • 有任何意見歡迎建立issue
  • 歡迎發PR,但請詳述commit內容
  • 不接受的PR類型:格式修改(Ctrl+Shift+F)、註解修改等,除非經過討論或有工具輔助

merl's People

Contributors

yyc1217 avatar

Watchers

 avatar

merl's Issues

代表色資訊應與隊伍一起儲存

目前隊伍的代表色資訊採手動在css、javascript或html輸入
應改成與隊伍資訊一併存在資料庫中,以方便後續切換作業。

選秀結果的每一列應採動態加入

目前選秀結果的呈現為先產生固定列後,再插入資料
應改成要進到下一行時,再動態append新的一列
一方面避免選秀結果超出預期
一方面也方便給智慧型裝置使用者的瀏覽,避免要不停的上下滑動

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.