Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.794 kb
using System;
using System.Linq;
using GeneticAlgorithm.Criteria;
namespace FixtureGenerator.Criteria
{
public class SuperSundayCriteria : CriteriaBase<Season, MatchDay>
{
public override string Description
{
get { return "Super Sunday"; }
}
protected override Func<MatchDay, bool> Criteria
{
get { return matchDay =>
matchDay.Fixtures.Count(
fixture =>
fixture.HomeTeam.TableGrouping.Ordering == 1 && fixture.AwayTeam.TableGrouping.Ordering == 1) > 1; }
}
protected override int Multiplier
{
get { return 10; }
}
protected override bool Mandatory
{
get { return false; }
}
}
}
Jump to Line
Something went wrong with that request. Please try again.