MarisiaS / SMM

0 stars 0 forks source link

[User Story] Heat Assignment #52

Open MarisiaS opened 8 months ago

MarisiaS commented 8 months ago

Story Description

As a swim meet organizer, I want to add athletes to a specific event and automate the generation of heats for efficient event management.

To generate the heats, the following steps need to be considered:

Distributing Athletes into Heats

Athletes are initially sorted based on their seed times for the event. Subsequently, they are distributed into heats, taking into account the number of lanes available at the meet.

Each heat must utilize at least half of the available lanes. In cases where there aren't enough athletes to fill all heats completely, the two slowest heats should have the fewest participants.

Alternating Lanes based on Seed Times

Within each heat, athletes are sorted based on their seed times for the event. The athlete with the fastest seed time is positioned in the middle lane. Subsequent athletes are alternately placed to the right and left of the middle lane, following the order of their seed times.

Ordering of the heats

The heats are arranged in ascending order of times, progressing from one heat to the next, with the fastest times reserved for the last heat.

Field Requirements

Tasks