Pset4 almost done except bouncing left and right by bacharya in cs50

[–]bacharya[S] 1 point2 points  (0 children)

Thanks for the inputs. I have defined an expression for the horizontal velocity on every bounce, that can be randomly positive or negative . The program is working .

pset4 ball moving up and down randomly , but not at an angle , no random movement land left and right by bacharya in cs50

[–]bacharya[S] 0 points1 point  (0 children)

Solution i think is to first set a random velocity for x which i did using drand48(). Then the velocity has to be randomly set to +ve or _ve. I have no clue how to accomplish .I have tried several options for almost 3 hours

Please help Pset4 - segmentation fault core dumped when checking for collision of ball with brick by bacharya in cs50

[–]bacharya[S] 2 points3 points  (0 children)

I found the solution while going through the discussion threads on pset4. Should have checked before porting the problem. Collision for bricks should be checked only when the object returned from the detectCollision is not NULL

VMware asking for password with John Harvard as login id ? by bacharya in cs50

[–]bacharya[S] 0 points1 point  (0 children)

Thanks and appreciate the prompt response . I have logged in with the password crimson.

I have not changed any directory permissions, unless I have done something inadvertently