Skip to content

add stealing to post match and change other stuff#82

Open
leok18 wants to merge 4 commits intomainfrom
add-stealing
Open

add stealing to post match and change other stuff#82
leok18 wants to merge 4 commits intomainfrom
add-stealing

Conversation

@leok18
Copy link
Copy Markdown
Contributor

@leok18 leok18 commented Mar 25, 2026

No description provided.

@leok18 leok18 requested a review from MangoSwirl March 25, 2026 04:41
@MangoSwirl
Copy link
Copy Markdown
Member

@leok18 could you get checks to pass?

stealerType: StealerType.toAlliance,
localizedDescription: "To Alliance",
localizedLongDescription:
"The robot steals fuel and brings it to the alliance zone.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we change the language to be more inclusive of pushing fuel? Right now it sounds like you have to intake it.
And can we also ask about pushing vs shooting here?

role: RobotRole.Stealing,
localizedDescription: "Stealing",
localizedLongDescription:
"The robot focuses on stealing fuel from the opposing alliance.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we want to say "focuses" because we're looking for all roles played, not just the one played for the majority of the match.

scoresWhileMoving:
reportState.scoresWhileMoving === ScoresWhileMoving.Yes,
endgameClimb: endgameClimbToString(reportState.climbResult),
stealerTypes: reportState.stealerType.map()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm noticing some inconsistent language with stealingType vs stealerType vs stealerTypes. Completely fine, we just need to make sure Jack is clear on which to use for what situation.

@leok18 leok18 requested a review from MangoSwirl March 28, 2026 18:02
Comment on lines 242 to +246
case RobotRole.Immobile:
default:
return "IMMOBILE";
case RobotRole.Stealing:
return "STEALING";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This switch statement looks really wrong

Comment on lines 300 to +309
switch (feederType) {
case FeederType.Continuous:
return "CONTINUOUS";
case FeederType.StopToShoot:
return "STOP_TO_SHOOT";
case FeederType.Dump:
return "DUMP";
case FeederType.Push:
return "PUSH";
default:
return "PUSH";
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This will return "PUSH" if you input FeederType.Dump

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.

2 participants