示例#1
0
 public EvaluationDto(Game game, Draw draw)
 {
     this.game = game.notNull();
     this.draw = draw.notNull();
     IsWin = game.win(draw);
     IsWin_L649 = game.Playslips.Any(x => x.win(draw, GameType.Lotto649));
     IsWin_S77 = game.Playslips.Any(x => x.win(draw, GameType.Spiel77));
     IsWin_S6 = game.Playslips.Any(x => x.win(draw, GameType.Super6));
 }
示例#2
0
        public TerminalDto(Game game, Draw draw, GuessFrequency guessFrequency, WinFrequency winFrequency)
        {
            game.notNull();
            guessFrequency.notNull();
            winFrequency.notNull();

            game.Playslips.Each(playslip => filedPlayslips.Add(new FiledPlayslipDto(playslip, draw)));

            if(null != game.Template){
                Template = new TemplateDto(game.Template, draw);
                TemplateStyle = game.Template is PlayslipC ? Style.Combo : Style.Regular;
            }

            if(null != draw) {
                Draw = new DrawDto(draw);
                Evaluation = new EvaluationDto(game, draw);
            }

            GuessFrequency = new FrequencyDto(guessFrequency.Values, "Guessed Numbers");
            WinFrequency = new FrequencyDto(winFrequency.Values, "Winning Numbers");
        }
示例#3
0
 public PlayslipC(Game game, Nr nr, DateTime now)
     : base(game, nr, now)
 {
 }