GithubHelp home page GithubHelp logo

dicegame_mt4's Introduction

----------------------< Game rules constants >-----------------------------------------------------------------------

Rules can be parametrized by this globals constants

Standard Farkle rules :

5 dices with 6 faces

1 & 5 are scoring

1 is scoring 100 pts

5 is scoring 50 pts

Bonus for 3 dices with the same value

3 ace is scoring 1000 pts

3 time the same dice value is scoring 100 pts signal the dice value

Target total score to win by default

DEFAULT_TARGET_SCORE = 2000

Number of dices by default in the set

DEFAULT_DICES_NB = 5

Number of side of the dices used in the game

NB_DICE_SIDE = 6

List of dice value scoring

LIST_SCORING_DICE_VALUE = [1, 5]

List of associated score for scoring dice values

LIST_SCORING_MULTIPLIER = [100, 50]

Trigger for multiple bonus

TRIGGER_OCCURRENCE_FOR_BONUS = 3

Special bonus multiplier for multiple ace bonus

BONUS_VALUE_FOR_ACE_BONUS = 1000

Standard multiplier for multiple dices value bonus

BONUS_VALUE_FOR_NORMAL_BONUS = 100

----------------------------------------------------------------------------------------------------------------------

dicegame_mt4's People

Contributors

carloberni avatar louis-genestier avatar triaunicolas avatar

Stargazers

 avatar

Watchers

 avatar  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.