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

Zoner defense #2254

Closed
wants to merge 53 commits into from
Closed

Zoner defense #2254

wants to merge 53 commits into from

Conversation

rishiso
Copy link
Contributor

@rishiso rishiso commented Apr 24, 2024

Description

Implement zone defense.

Steps to Test

  1. Force robot factory position to be zoner.
  2. Try moving ball around and observe zoner movement

Expected result:
It should stay in assigned point when no enemies in range, mark if one enemy robot, and stay in centroid if multiple enemies in range.

Key Files to Review

  • zoner.cpp
  • zoner.hpp

Review Checklist

  • Docstrings: All methods and classes should have the file appropriate docstrings which follow the guidelines in the "Contributing" page of our docs.
  • Remove extra print statements: Any print statements used for debugging should be removed
  • Tag reviewers: Tag some people for review and ping them on Slack

(Optional) Sub-issues (for drafts)

Note: if you find yourself breaking this PR into many smaller features, it may make sense to break up the PR into logical units based on these features.

  • Step 1
  • Step 2

Shourik and others added 30 commits March 6, 2024 19:01
…e alive_robots_. Modified type of alive_robots_ almost everywhere to be the std::array<bool, kNumShells> rather than the std::vector<int>
… the new array parameter, made code cleaner for loop in robot_factory_position
automated style fixes

Co-authored-by: sanatd33 <sanatd33@users.noreply.github.com>
automated style fixes

Co-authored-by: sanatd33 <sanatd33@users.noreply.github.com>
@rishiso rishiso closed this Apr 24, 2024
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.

6 participants