Nov12

@lalitazad 

Alright, I've just reviewed the code, and I've written comments in the diff. Can view them below or under the "Files Changed" tab.

You really need to read and understand the CM. The logic is NOT the same as the one in the CM. Like you could even literally copy/paste the pseudo-code from the CM, and replace a few things, and you'd be done. Remember, we are being evaluated on the similarity between the CM and the SM. At least, at the very least, the names and logic should be the same. If you figure more efficient/better logic, just notify me or the CM team, and we could change the document.

You've tried to implement things that are not even in the model at all, like retry counts for failures and generating random positions for the racetrack.

Again, please take the time to read the CM document, especially the behavioral constructs section. Everything is there, including the algorithms needed to generate the random values, the data models, the behaviors and their relationships.

If you don't understand the syntax of the CM, you could refer to Section 4.3.3 of the textbook and the examples listed in Section 4.3. If you want to know how I implemented the simulation, you can look at section 5.2.1, I'm using a similar design.

Remember, all you need to do, is create the missing Entity structures, and implement their behaviors according to the CM. It's that simple, there's no need to create managers or new data structures, it's already all there for you. Everything is documented in the comment headers explaining the purpose of each class.

If you want, we could meet again, we could try working on this together. Let me know.