/raffle

The raffle program for shenjs

Primary LanguageJavaScriptMIT LicenseMIT

Raffle Program For JSConf China

Algorithm

Use a weight probability algorithm to calculate probability for each people. And it will follow the rule: image

UI

We use https://github.com/yaronn/blessed-contrib build a simple CLI UI application image

How to use

git clone git@github.com:jsconfcn/raffle.git

npm i

node raffle.js or node raffle.js 1000

default range from [0 ~ 800]

Requirements

  • A CLI program.
  • Writen in one of JavaScript/TypeScript/CoffeeScript/Elm/ClojureScript.
  • Grow the chance for ppl who didn't win anything.

License

MIT