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)); }
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"); }
public PlayslipC(Game game, Nr nr, DateTime now) : base(game, nr, now) { }