Adrian400811 / VehicleSim

VehicleSim for ICS4U. Starter code from Mr. Jordan Cohen. Requires Greenfoot.
1 stars 0 forks source link

Vehicles getting wrong new lane number #12

Closed Adrian400811 closed 6 months ago

Adrian400811 commented 6 months ago

In 6 lanes 2 way, Vehicles on Lane 1 jumps to Lane 3 and back and repeats. Same for Lane 4 jumping to Lane 2.

Adrian400811 commented 6 months ago

https://github.com/Adrian400811/VehicleSim/assets/59413622/dc573b88-7e9d-4620-8711-879db2595ad9

Adrian400811 commented 6 months ago

It seems cars from lane 1 is sometimes ask for the Y value of lane -1 too. Should be some problem when counting the new lane number

Adrian400811 commented 6 months ago

Close for rewriting the whole algorithm