Git Product home page Git Product logo

riskodds's Introduction

README.txt -- part of RiskOdds

RiskOdds is a simple program to calculate odds from the classic boardgame Risk.

See LICENSE for licensing information.

RiskOdds calculates all the nice odds in Risk you always wanted to know (or at least I did).

Results:

1 attacking die  vs. 1 defending die :   (-0.5833, -0.4167) 
     (0,1): 41.67% 5/12     
     (1,0): 58.33% 7/12     
2 attacking dice vs. 1 defending die :   (-0.4213, -0.5787)
     (0,1): 57.87% 125/216
     (1,0): 42.13%  91/216
3 attacking dice vs. 1 defending die :   (-0.3403, -0.6597)
     (0,1): 65.97% 95/144
     (1,0): 34.03% 49/144
1 attacking die  vs. 2 defending dice:   (-0.7454, -0.2546)
     (0,1): 25.46%  55/216
     (1,0): 74.54% 161/216
2 attacking dice vs. 2 defending dice:   (-1.2207, -0.7793)
     (0,2): 22.76% 295/1296
     (1,1): 32.41%  35/108
     (2,0): 44.83% 581/1296
3 attacking dice vs. 2 defending dice:   (-0.9209, -1.0791)
     (0,2): 37.17% 1445/3888
     (1,1): 33.58% 2611/7776
     (2,0): 29.26% 2275/7776

Usage:

  • By default this will print the dice odds.
  • Invoked with java RiskOdds attackers defenders it will print the odds of the attackers winning with the specified army counts.

riskodds's People

Contributors

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