In this problem we create two car objects that have different speed and coordinates we then call the methods such as accelerate,break, so their speed changes and updates their coordinates bsed on their current speed then the method detect collision is call to check if the cars will collide or not and calculate the time of collision after that we print the output in console
-
Notifications
You must be signed in to change notification settings - Fork 0
krohit2003/Mastering-web3
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published