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

Moving pad locations to field constants. Updated stolen boosts logic. #212

Merged
merged 6 commits into from
Nov 12, 2019

Conversation

IsaacLance
Copy link
Contributor

No description provided.

Boost steals are now better calculated using the pad label rather than player location heuristic.
@IsaacLance IsaacLance requested a review from dtracers November 11, 2019 21:47
@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

Merging #212 into master will increase coverage by 0.09%.
The diff coverage is 96.49%.

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
+ Coverage   89.87%   89.97%   +0.09%     
==========================================
  Files          98       98              
  Lines        4318     4320       +2     
  Branches      740      742       +2     
==========================================
+ Hits         3881     3887       +6     
+ Misses        323      317       -6     
- Partials      114      116       +2

big = cls.field_constants.get_big_pads()
# Get big pads below or above 0 depending on team
if is_orange:
opponent_pad_labels = big[big[:, 1] < 0][:, 2]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a bit more detailed explanation of how this logic works?

It is a bit hard to read

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

1 similar comment
@AppVeyorBot
Copy link

@dtracers dtracers merged commit b3ee4e7 into master Nov 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the boost branch November 12, 2019 04:13
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.

3 participants