1.1.6 • Published 4 years ago

teenpattisolver v1.1.6

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

Teen Patti Solver for Node.Js

Install

npm install teenpattisolver

Importing file

var teenPattiScore = require("teenpattisolver");

Find Score of Player in Normal Teen Patti Mode

var handNormal = teenPattiScore.scoreHandsNormal(["As", "Ad", "Ac"]);
// handNormal : {
//     name: 'Trio',
//     desc: 'Trio of A',
//     score: 5140101
// }

Find Score of Player in 2 Card Mode

var handTwo = teenPattiScore.scoreHandsTwo(["As", "Ad"]);
// handTwo: {
//     name: 'Pair',
//     desc: 'Pair of A',
//     score: 41401
// }

Find Score of Player in 4 Card Mode (Best of 3 from 4 cards, 4th Card is Discarded)

var handFour = teenPattiScore.scoreHandsFour(["As", "Ad", "Ac", "Ah"]); // Best of 3
// handFour: {
//     name: 'Trio',
//     desc: 'Trio of A',
//     score: 5140101
// }

Find Score of Player in Lowest Mode

var handLowest = teenPattiScore.scoreHandsLowest(["2s", "3d", "5c"]);
// handLowest: {
//     name: 'High Card',
//     desc: 'High Card of 5',
//     score: 9949698
// }

Find Score of Player in 1 Card Joker Mode

var handJoker = teenPattiScore.scoreHandsJoker(["Qs", "5d", "3h"], "Qc");
// handJoker: {
//     name: 'Sequence',
//     desc: 'Sequence of 5 High',
//     score: 3050403
// }

Find Score of Player in Multi Card Joker Mode

var handJoker = teenPattiScore.scoreHandsJokers(
  ["Ac", "Kc", "5d"],
  ["5c", "Kd"]
);
// handJoker: { name: 'Trio', desc: 'Trio of A', score: 5140101 }
1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago