Scouts-Victoria-Program / RadioActiv8

Django App for Radio Active Scout game management
GNU Affero General Public License v3.0
1 stars 1 forks source link

Configure base priority for Fantastic Race #17

Open mattcen opened 1 year ago

mattcen commented 1 year ago

Fantastic race runs along a train line. Patrols start at a given station and travel to each station either inbound or outbound. They each start at different stations along the line.

We need to be able to flag whether any given patrol is heading inbound or outbound, and which stations they are starting and ending at. Then it's a matter of storing the order of stations along the line, and iterating through them.

It's possible that there are multiple sequences (e.g. a fork in the train line) that need to be considered too.

The selection of the next base is done in JavaScript in the browser.

mattcen commented 1 year ago

https://github.com/Scouts-Victoria-Program/RadioActiv8/blob/9927d49320f34bacc3819092b76c892d360022dc/django/RadioActiv8/static/RadioActiv8/js/event-form.js#L124