Skip to content

small project - competition winner #4

@practicalli-johnny

Description

@practicalli-johnny

Walk-through of a project to calculate the winner of a competition which involves points awarded for multiple sequential events

Create a practicalli/minimal Clojure project

clojure -T:practicalli/create :name practicalli/competition-predictor

Example competitions

  • Formula1 driver championship
  • Formula1 constructors championship
  • Formula E drivers championship
  • American Football
  • Austrailian Rules football
  • Rubgy Union
  • Soccer, e.g. UK Premiership
  • esports ?
  • other tournaments ??

Each type of competition has its own point scoring scheme and number of events

  • consider a data definition to codify the rules of each competition
  • then make the code abstract enough to process the rules of each competition by processing the rules data and data from the result of each event.

Interesting feedback

  • competition data - number of events, dates, points available for a specific event (i.e. Formula 1 has a sprint race with points at some events, but not all)
  • unassailable lead / winder before the end of the competition
  • points remaining for leader to win the competition (extend to top 3-5 in competition)
  • Prediction of winner based on history of events (limit to current year or small set of years)
  • Prediction of number of events remaining before likely winner

Related

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions