-
Notifications
You must be signed in to change notification settings - Fork 0
/
PrizeProbabilities.h
66 lines (55 loc) · 1.77 KB
/
PrizeProbabilities.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef PRIZE_PROBABILITIES_H
#define PRIZE_PROBABILITIES_H
#include <string>
#include <iostream>
#include <sstream>
#include <map>
const int MATCH_5_2_LUCKY = 139838160;
const int MATCH_5_1_LUCKY = 6991908;
const int MATCH_5 = 3107515;
const int MATCH_4_2_LUCKY = 621503;
const int MATCH_4_1_LUCKY = 31075;
const int MATCH_4 = 13811;
const int MATCH_3_2_LUCKY = 14125;
const int MATCH_3_1_LUCKY = 706;
const int MATCH_3 = 314;
const int MATCH_2_2_LUCKY = 985;
const int MATCH_2_1_LUCKY = 49;
const int MATCH_2 = 22;
const int MATCH_1_2_LUCKY = 188;
const std::map<int, std::string> name_map = {
{MATCH_5_2_LUCKY, "MATCH_5_2_LUCKY"},
{MATCH_5_1_LUCKY, "MATCH_5_1_LUCKY"},
{MATCH_5, "MATCH_5"},
{MATCH_4_2_LUCKY, "MATCH_4_2_LUCKY"},
{MATCH_4_1_LUCKY, "MATCH_4_1_LUCKY"},
{MATCH_4, "MATCH_4"},
{MATCH_3_2_LUCKY, "MATCH_3_2_LUCKY"},
{MATCH_3_1_LUCKY, "MATCH_3_1_LUCKY"},
{MATCH_3, "MATCH_3"},
{MATCH_2_2_LUCKY, "MATCH_2_2_LUCKY"},
{MATCH_2_1_LUCKY, "MATCH_2_1_LUCKY"},
{MATCH_2, "MATCH_2"},
{MATCH_1_2_LUCKY, "MATCH_1_2_LUCKY"},
};
extern const int priority_list[13];
// mapping prize name to amount (in pennies, using this data: https://www.euro-millions.com/odds-of-winning)
const std::map<int, long long int> prize_money = {
{MATCH_5_2_LUCKY, 4218833600},
{MATCH_5_1_LUCKY, 29688600},
{MATCH_5, 5022400},
{MATCH_4_2_LUCKY, 298100},
{MATCH_4_1_LUCKY, 13600},
{MATCH_4, 6200},
{MATCH_3_2_LUCKY, 5300},
{MATCH_3_1_LUCKY, 1000},
{MATCH_3, 800},
{MATCH_2_2_LUCKY, 1300},
{MATCH_2_1_LUCKY, 500},
{MATCH_2, 300},
{MATCH_1_2_LUCKY, 700},
};
const int min = 0;
const int max = MATCH_5_2_LUCKY + 1;
extern const int big_wins[1]; //, MATCH_5_1_LUCKY};
#endif