BilHim / trafficSimulator

A microscopic traffic simulation in Python
MIT License
363 stars 132 forks source link

Latest changes not in GitHub? #17

Closed artmen1516 closed 1 year ago

artmen1516 commented 1 year ago

Hello, nice work with this repo, I read your article and wanted to give it a try, but when I cloned it I noticed that there is a lot missing, in the article you mention a Road class, TrafficSignal, and other important things for the simulation... would it be possible to have these latest changes in your repo to test the full functionality of it?

Thanks in advance.

BilHim commented 1 year ago

The current repo is actually ahead of the code in the article. I have rewritten the code using a slightly different approach in the current main branch and it is still under development.

You can check out the old code (the same as the one in the article) in this commit https://github.com/BilHim/trafficSimulator/commit/9f073f603180534973a376dcd4157eae282339d8.

You can clone it using

git clone https://github.com/BilHim/trafficSimulator.git
cd trafficSimulator
git reset --hard 9f073f603180534973a376dcd4157eae282339d8

Let me know if that helps.

artmen1516 commented 1 year ago

oh okay, as I saw less files and classes than the article I thought main was outdated, thanks for the information. and actually the commit 9f073f6 didn't work, but the previous one to that did work 43b06d6

git reset --hard 43b06d6

thanks!

image