Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PriceN5AndLucky = 2000000.0 PriceN5 = 159957.0 PriceN4AndLucky = 2054.80 PriceN4 = 430.60 PriceN3AndLucky = 73.60 PriceN3 = 21.70 PriceN2AndLucky = 14.70 PriceN2 = 4.70 PriceN1AndLucky = 2.2 PriceN1 = 0.0 PriceN0AndLucky = 2.2 PriceN0 = 0.0 CostTicket = 2.2 )
Prices values
View Source
var ( JokerValue int64 = 100 BallValue int64 = 10 )
score point to match ball or joker
Functions ¶
Types ¶
type Draw ¶
type Draw struct { ID string `csv:"annee_numero_de_tirage"` Date string `csv:"date_de_tirage"` Day string `csv:"jour_de_tirage"` B1 int32 `csv:"boule_1"` B2 int32 `csv:"boule_2"` B3 int32 `csv:"boule_3"` B4 int32 `csv:"boule_4"` B5 int32 `csv:"boule_5"` Joker int32 `csv:"numero_chance"` OtherData map[string]string `csv:"-"` }
Draw description data
type History ¶
History data type
func NewHistory ¶
NewHistory read the files parameter to extract the draw history in date order
func (History) DrawByIndex ¶
DrawByIndex getter not available on old history
type Loto ¶
type Loto interface { Prediction(opt Option) (rest int64, err error) History() History String() string // contains filtered or unexported methods }
Loto data interface
func NewVariant1 ¶
NewVariant1 analyse ball by ball separetly with a strict pick order
type OldDraw ¶
type OldDraw struct { ID string `csv:"annee_numero_de_tirage"` Date string `csv:"date_de_tirage"` Day string `csv:"jour_de_tirage"` B1 int32 `csv:"boule_1"` B2 int32 `csv:"boule_2"` B3 int32 `csv:"boule_3"` B4 int32 `csv:"boule_4"` B5 int32 `csv:"boule_5"` B6 int32 `csv:"boule_6"` Joker int32 `csv:"boule_complementaire"` Tirage int32 `csv:"1er_ou_2eme_tirage"` OtherData map[string]string `csv:"-"` }
OldDraw description data
type Option ¶
Option to adjust the data prediction Index to start in the history NDraw to the number draw usage in the prediction Old to get the old loto history
type Reward ¶
type Reward struct {
// contains filtered or unexported fields
}
Reward statistique
Click to show internal directories.
Click to hide internal directories.