Code Monkey home page Code Monkey logo

coc7-dice's Introduction

COC7-dice

以js完成擲骰並印出結果 https://marabuda.github.io/COC7-dice/

百面骰

以投擲兩顆十面骰的方式進行
一顆作為個位數,一顆作為十位數
其中coc7版數字越小越好
舉例
丟擲兩個十面骰(0~9)
十位數得到8,個位數得到0
最終結果得到80

獎勵骰

每多一個獎勵骰,多丟一顆10面骰當作十位數的備選 從中挑選最低作為本次擲骰結果的十位數
舉例
一個獎勵骰
丟擲三個十面骰(0~9)
十位數得到[1,5],個位數得到8
最終結果得到18

懲罰骰

每多一個懲罰骰,多丟一顆10面骰當作十位數的備選 從中挑選最高作為本次擲骰結果的十位數
舉例
一個獎勵骰
丟擲三個十面骰(0~9)
十位數得到[7,5],個位數得到2
最終結果得到72

coc7-dice's People

Contributors

marabuda avatar

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.