Skip to content

Penalty & Scoring System [AARD-1895] #1160

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

Open
wants to merge 20 commits into
base: dev
Choose a base branch
from

Conversation

AlexD717
Copy link
Member

@AlexD717 AlexD717 commented Jun 24, 2025

Objectives

Track penalties, scoring contributions and ranking points. Implement per-robot penalty and score trackers. This system can be expanded upon later including some more advanced point tracking system so just do what seems reasonable for this particular task.

Description

  • When spawning robots you can now select what alliance they are on (default red)
Screenshot 2025-06-24 at 2 35 28 PM

This can also be done through the configure assets tab
Screenshot 2025-06-24 at 2 37 10 PM

  • During match mode, the game keeps track of how much each individual robot contributed to the score and displays that information at the end of the match
Screenshot 2025-06-24 at 2 24 45 PM

The score for Luna is -15. This can happen either if the robot scores in the opposing alliances goal, or through penalties.

  • The simulator now also keeps track of penalties which are displayed with a toast, and also increase the opposing alliances score
Screenshot 2025-06-24 at 2 42 31 PM
  • You can now configure a protected area on the field, that the opposing alliance can't enter without receiving a penalty
    • Ex. If a red robot enters a blue alliance protected area, the red robot receives a penalty and the blue alliance gets some points
Screenshot 2025-06-24 at 2 45 43 PM Screenshot 2025-06-24 at 2 44 58 PM
  • You can also configure the panel so that it requires robot contact from the opposing alliance to count as penalty points
    • Ex. In Reefscape (2025) there were areas that you could enter, but it was risky, since it was a protected area and if you touched an opposing robot that would be a penalty.

Testing Done

  • Robot alliance can be configured
  • Match Mode keeps track of how many points each robot contributed (can be negative)
  • Can configure protected areas on the field
  • Entering a opposing alliance protected area that doesn't require robot contact gives the opposing alliance points
  • Entering a opposing alliance protected area that requires robot contact gives the opposing alliance points, only on collision with one of their robots

JIRA Issue
Screenshot 2025-06-24 at 2 55 26 PM

@AlexD717 AlexD717 self-assigned this Jun 24, 2025
@AlexD717 AlexD717 requested review from a team as code owners June 24, 2025 22:00
@AlexD717 AlexD717 requested a review from Dhruv-0-Arora June 24, 2025 22:00
@AlexD717 AlexD717 added ui/ux Relating to user interface, or in general, user experience gameplay Relating to the playability of Synthesis labels Jun 24, 2025
@AlexD717 AlexD717 changed the title Penalty & Scoring System [1895] Penalty & Scoring System [AARD-1895] Jun 24, 2025
Copy link
Member

@ryanzhangofficial ryanzhangofficial left a comment

Choose a reason for hiding this comment

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

Looks and feels great! Seems to be a great start for the full system.

Copy link
Collaborator

@Dhruv-0-Arora Dhruv-0-Arora left a comment

Choose a reason for hiding this comment

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

Conflicts. Is this blocked by the refactor?

@AlexD717
Copy link
Member Author

AlexD717 commented Jul 1, 2025

Conflicts. Is this blocked by the refactor?

The conflicts were primarily due to the Preference Saving Refactor (so that changes are applied instantly). I don't believe that this is blocked by the UI refactor if that is what you are referring to.

@AlexD717 AlexD717 requested a review from Dhruv-0-Arora July 1, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gameplay Relating to the playability of Synthesis ui/ux Relating to user interface, or in general, user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants