SparseRailGenerator : Agent placement (invalid direction)
I would like to report a bug in the Sparse Rail generator. Very often it happens that trains are placed onto the map with invalid starting orientation as depicted in the attachment. According to the allowed transitions the train cannot move anywhere as it is facing in a direction that should never be allowed on the rail.
I have tried to pre-generate few instances for testing the new algorithm and this problem has been repeatedly occurring with different setups.