Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Request? #4

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open

Pull Request? #4

wants to merge 51 commits into from

Conversation

AndrewHallam
Copy link

I wasn't sure if we should do a pull request so I did one just to be on the safe side.

…and the x and y velocities). This was done to remove the raw numbers from the code.
…s again. Also, I slightly changed the indention inside update_boids
…the various relevant functions from the main body there as methods.
…nes to try and make the code a little more readable.
… this should be an "internal" property of the boid I think it will make the code more readable this way.
… update_boid function in the main code to use the boid class rather than the functions it currently uses.
…reviously. I also changed the animate function to work with this new update_boids. While this is a rather large refactor there wasn't a step in the middle where the code as a whole entirely worked.
… very very large delta. There may be a problem with my code which is making the velocity of the boids far too high.
…lass methods in case that is the source of the problem.
…sure what is wrong. Velocity must be updating by the wrong amount but it's not obvious which section is giving an error since it all runs.
…ined the wrong way round, adding velocity in the wrong direction!
…update_boids it didn't run all of boids. Not only that, I also changed the way the loops over the match_speed method work since this also meant the regression test failed.
…hecks whether the velocity of one of the boids is properly changed by another boid.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant