Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect starting positions (odd/even swapped) #100

Open
Wuzzy2 opened this issue May 6, 2020 · 2 comments
Open

Incorrect starting positions (odd/even swapped) #100

Wuzzy2 opened this issue May 6, 2020 · 2 comments
Labels

Comments

@Wuzzy2
Copy link
Contributor

Wuzzy2 commented May 6, 2020

I noticed the starting positions are slightly off:

If you start on position 12, you actually have a “better” (=closer to the finish line) position than position 11. If you start on position 1, the car on position 2 is closer to the finish line as well.
The same is for ranks 3 vs 4, 5 vs 6, 7 vs 8 and 9 vs 10.
In general, all ranks with an even number N are having a slightly better starting position than the rank N-1.

Summary:

  • Rank 2 is better than 1
  • 4 is better than 3
  • 6 is better than 5
  • 8 is better than 7
  • 10 is better than 9
  • 12 is better than 11

While it should be vice-versa for each of these groupings. (e.g. 1 is better than 2, 3 is better than 4, etc.)

Discovered in 8722d43.

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented May 6, 2020

After further testing, I noticed this does not always happen.
It depends on the direction of the start/finish line.

The bug only occurs if the cars start facing rightwards or upwards. For example, on Ring or Desert Storm.
On tracks in which the cars start facing leftwards or downwards, the bug does NOT occur. For example, on Monza or Triangle.

@juzzlin
Copy link
Owner

juzzlin commented May 11, 2020

Good catch! :)

@juzzlin juzzlin added the bug label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants