1.0.5 • Published 10 years ago

welfare-lottery v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

welfare-lottery

This is an implementation for welfare lottery rule on nodejs.

This project is write in Typescript 1.4.

Api:

var lotteryRegister = require("welfare-lottery");

lotteryRegister.getAllLottery():api[];
lotteryRegister.findLotteryByCode(code):api;

var api = lotteryRegister.findLotteryByCode("01");

api.name // chinese name of current api
api.price // 2 by now
api.code // lottery code
api.generateRandomCastCodes(count,playMethod,castMethod):string[];
api.countLotteryNum(castCode,playMethod,castMethod):number;
api.countLotteryCost(castCode,playMethod,castMethod,multiple):number;
api.getHitCodes(castCode,awardCode,playMethod,castMethod):{value}[];

I will be pleasure if this helps.

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago