ashivasubramanian / sc

Section Controller game
1 stars 1 forks source link

Trains should respect signal aspects #10

Open ashivasubramanian opened 7 years ago

ashivasubramanian commented 7 years ago

Currently, trains do not stop before a signal if the signal aspect is red or slow down if the signal aspect is amber.

This should be fixed because as per the functional spec,

Red: The train shall come to a complete stop just before the signal.
Green: The train can travel at any speed as long as it does not exceed MPS.
Amber: The train can travel at a speed that does not exceed half of the MPS.
ashivasubramanian commented 1 year ago

This is easier to debug once #11 is done. So that should be done first.