mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Update fouls for 2019.
This commit is contained in:
60
game/foul.go
60
game/foul.go
@@ -20,44 +20,38 @@ type Rule struct {
|
||||
|
||||
// All rules from the 2018 game that carry point penalties.
|
||||
var Rules = []Rule{
|
||||
{"S06", false, false, "DRIVE TEAMS may not extend any body part into the RETURN chute, the PORTAL chute, or the EXCHANGE tunnel."},
|
||||
{"C07", false, false, "Strategies clearly aimed at forcing the opposing ALLIANCE to violate a rule are not in the spirit of FIRST® Robotics Competition and not allowed."},
|
||||
{"C07", true, false, "Strategies clearly aimed at forcing the opposing ALLIANCE to violate a rule are not in the spirit of FIRST® Robotics Competition and not allowed."},
|
||||
{"G05", false, false, "ROBOTS may not extend more than 16 in (41 cm). beyond their FRAME PERIMETER."},
|
||||
{"G07", false, false, "ROBOTS must be in compliance with BUMPER rules throughout the MATCH."},
|
||||
{"G10", false, false, "Strategies aimed at the destruction or inhibition of ROBOTS via attachment, damage, tipping, or entanglements are not allowed."},
|
||||
{"G11", false, false, "Initiating deliberate or damaging contact with an opponent ROBOT on or inside the vertical extension of its FRAME PERIMETER, including transitively through a POWER CUBE, is not allowed."},
|
||||
{"G13", false, false, "Fallen (i.e. tipped over) ROBOTS attempting to right themselves (either by themselves or with assistance from a partner ROBOT) have one ten (10) second grace period in which they may not be contacted by an opponent ROBOT."},
|
||||
{"G14", false, false, "ROBOTS may not pin an opponent’s ROBOT for more than five (5) seconds."},
|
||||
{"G15", false, false, "A ROBOT may not block their opponent’s EXCHANGE ZONE for more than five (5) seconds."},
|
||||
{"G16", true, false, "A ROBOT whose BUMPERS are breaking the plane of or completely contained by its NULL TERRITORY and not breaking the plane of the opponent’s PLATFORM ZONE may not be contacted by an opposing ROBOT either directly or transitively through a POWER CUBE, regardless of who initiates the contact."},
|
||||
{"G17", true, false, "Unless during the ENDGAME, or attempting to right a fallen (i.e. tipped over) ALLIANCE partner, ROBOTS may neither fully nor partially strategically support the weight of partner ROBOTS."},
|
||||
{"G19", false, false, "DRIVE TEAMS, ROBOTS, and OPERATOR CONSOLES are prohibited from the following actions with regards to interaction with ARCADE elements: grabbing, grasping, attaching to, hanging, deforming, becoming entangled, and damaging."},
|
||||
{"G20", true, false, "With the exception of placing a POWER CUBES on PLATES, ROBOTS may not deliberately use POWER CUBES in an attempt to ease or amplify the challenge associated with FIELD elements."},
|
||||
{"G21", false, false, "With the exception of feeding POWER CUBES through the lower opening of the EXCHANGE, ROBOTS may not intentionally eject POWER CUBES from the FIELD."},
|
||||
{"G22", false, false, "ROBOTS may not control more than one (1) POWER CUBE at a time, except when breaking the plane of their own EXCHANGE ZONE."},
|
||||
{"G23", false, false, "ROBOTS may not remove POWER CUBES, or cause POWER CUBES to be removed, from the opponent’s POWER CUBE ZONE."},
|
||||
{"G24", true, false, "Strategies aimed at removing POWER CUBES from PLATES are prohibited."},
|
||||
{"G25", false, false, "Except via the weight of placed POWER CUBES, ROBOTS may not directly or transitively cause or prevent the movement of PLATES to their ALLIANCE's advantage."},
|
||||
{"G25", true, false, "Except via the weight of placed POWER CUBES, ROBOTS may not directly or transitively cause or prevent the movement of PLATES to their ALLIANCE's advantage."},
|
||||
{"A01", false, false, "During AUTO, DRIVE TEAM members in ALLIANCE STATIONS and PORTALS may not contact anything in front of the STARTING LINES, unless for personal or equipment safety."},
|
||||
{"A02", false, false, "During AUTO, DRIVE TEAMS may not directly or indirectly interact with ROBOTS or OPERATOR CONSOLES unless for personal safety, OPERATOR CONSOLE safety, or pressing an E-Stop for ROBOT safety."},
|
||||
{"A03", false, false, "During AUTO, any control devices worn or held by the DRIVERS and/or HUMAN PLAYERS must be disconnected from the OPERATOR CONSOLE."},
|
||||
{"A04", false, false, "During AUTO, no part of a ROBOT’S BUMPERS may pass from the NULL TERRITORY to the opponent’s side of the FIELD."},
|
||||
{"A04", true, false, "During AUTO, no part of a ROBOT’S BUMPERS may pass from the NULL TERRITORY to the opponent’s side of the FIELD."},
|
||||
{"A05", false, false, "During AUTO, DRIVE TEAMS may not contact any POWER CUBES, unless for personal safety."},
|
||||
{"H06", false, false, "DRIVE TEAM members may not contact anything outside the zone in which they started the MATCH (e.g. the ALLIANCE STATION, PORTAL, designated area for the TECHNICIAN) during the MATCH."},
|
||||
{"H11", true, false, "During a MATCH, COACHES may not touch POWER CUBES unless for safety purposes."},
|
||||
{"H12", true, false, "During a MATCH, COACHES may not touch any component of the VAULT (including the buttons) unless for safety purposes."},
|
||||
{"H13", false, false, "DRIVE TEAMS may only deliberately cause POWER CUBES to leave an ALLIANCE STATION or PORTAL during TELEOP, by a HUMAN PLAYER or DRIVER, and through a PORTAL wall or the RETURN."},
|
||||
{"H14", false, false, "POWER CUBES may not be removed from the VAULT."},
|
||||
{"S6", false, false, "DRIVE TEAMS may not extend any body part into the CARGO Chute. Momentary encroachment into the Chute is an exception to this rule."},
|
||||
{"C8", false, false, "Strategies clearly aimed at forcing the opposing ALLIANCE to violate a rule are not in the spirit of FIRST Robotics Competition and not allowed."},
|
||||
{"G3", true, false, "During the SANDSTORM PERIOD, a ROBOT may not cross the FIELD such that its BUMPERS break the plane defined by their opponent’s CARGO SHIP LINE."},
|
||||
{"G4", false, false, "ROBOTS may not have greater-than-momentary or repeated control, i.e. exercise greater-than-momentary or repeated influence, of more than one (1) GAME PIECE at a time, either directly or transitively through other objects."},
|
||||
{"G5", false, true, "A ROBOT may not remove a GAME PIECE from an opponents’ ROCKET/CARGO SHIP."},
|
||||
{"G7", false, false, "ROBOTS may not intentionally eject GAME PIECES from the FIELD."},
|
||||
{"G8", false, false, "ROBOTS may not deliberately use GAME PIECES in an attempt to ease or amplify the challenge associated with FIELD elements."},
|
||||
{"G9", false, false, "No more than one ROBOT may be positioned such that its BUMPERS are completely beyond the opponent’s CARGO SHIP LINE."},
|
||||
{"G9", true, false, "No more than one ROBOT may be positioned such that its BUMPERS are completely beyond the opponent’s CARGO SHIP LINE."},
|
||||
{"G10", false, false, "No part of a ROBOT, except its BUMPERS, may be outside its FRAME PERIMETER if its BUMPERS are completely beyond its opponent’s CARGO SHIP LINE."},
|
||||
{"G10", true, false, "No part of a ROBOT, except its BUMPERS, may be outside its FRAME PERIMETER if its BUMPERS are completely beyond its opponent’s CARGO SHIP LINE."},
|
||||
{"G12", false, false, "A ROBOT may not break the vertical plane above the ALLIANCE STATION WALL or damage the SANDSTORM."},
|
||||
{"G13", false, false, "A ROBOT may not contact an opponent ROBOT if that opponent ROBOT’S BUMPERS are fully in their HAB ZONE."},
|
||||
{"G15", false, false, "DRIVE TEAMS, ROBOTS, and OPERATOR CONSOLES are prohibited from the following actions with regards to interaction with ARENA elements: grabbing, grasping, attaching to, hanging, deforming, becoming entangled, damaging, and repositioning GAME PIECE holders."},
|
||||
{"G16", false, true, "During Qualification MATCHES, ROBOTS may not contact opponents’ ROCKETS starting at T-minus 20s."},
|
||||
{"G17", false, false, "Fallen (i.e. tipped over) ROBOTS attempting to right themselves (either by themselves or with assistance from a partner ROBOT) have one ten (10) second grace period in which they may not be contacted by an opponent ROBOT."},
|
||||
{"G18", false, false, "ROBOTS may not pin an opponent’s ROBOT for more than five (5) seconds."},
|
||||
{"G18", true, false, "ROBOTS may not pin an opponent’s ROBOT for more than five (5) seconds."},
|
||||
{"G19", true, false, "Strategies aimed at the destruction or inhibition of ROBOTS via attachment, damage, tipping, or entanglements are not allowed."},
|
||||
{"G20", true, false, "Initiating deliberate or damaging contact with an opponent ROBOT on or inside the vertical extension of its FRAME PERIMETER, including transitively through a GAME PIECE, is not allowed."},
|
||||
{"G23", false, false, "BUMPERS must be in the BUMPER ZONE during the MATCH unless a ROBOT is completely in its HAB ZONE or supported by a ROBOT completely in its HAB ZONE."},
|
||||
{"G24", false, false, "ROBOTS may not extend more than 30 in (~76 cm). beyond their FRAME PERIMETER."},
|
||||
{"H6", false, false, "During the MATCH, DRIVERS, COACHES, and HUMAN PLAYERS may not contact anything outside the ALLIANCE STATION and TECHNICIANS may not contact anything outside their designated area."},
|
||||
{"H7", false, false, "During the MATCH, team members may only enter GAME PIECES on to the FIELD through their LOADING STATIONS."},
|
||||
{"H8", false, false, "During a MATCH, COACHES may not touch GAME PIECES unless for safety purposes."},
|
||||
{"H9", true, false, "During the SANDSTORM PERIOD, COACHES, DRIVERS, HUMAN PLAYERS, and any part of the OPERATOR CONSOLE may not break the vertical planes defined by the STARTING LINES, unless for safety purposes."},
|
||||
{"H10", true, false, "During the SANDSTORM PERIOD, COACHES, DRIVERS, and HUMAN PLAYERS may not look over the top of the ALLIANCE WALL down to the FIELD to overcome the effect of the SANDSTORM."},
|
||||
}
|
||||
|
||||
func (foul *Foul) PointValue() int {
|
||||
if foul.IsTechnical {
|
||||
return 10
|
||||
} else if foul.IsRankingPoint {
|
||||
return 0
|
||||
} else {
|
||||
return 3
|
||||
}
|
||||
|
||||
@@ -58,10 +58,14 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
{{range $rule := .Rules}}
|
||||
<a class="btn btn-sm {{if $rule.IsTechnical}}btn-danger{{else}}btn-warning{{end}} btn-referee btn-rule"
|
||||
<a class="btn btn-sm
|
||||
{{if $rule.IsTechnical}}btn-danger{{else if $rule.IsRankingPoint}}btn-primary
|
||||
{{else}}btn-warning{{end}}
|
||||
btn-referee btn-rule"
|
||||
data-rule="{{$rule.RuleNumber}}" data-is-technical="{{$rule.IsTechnical}}"
|
||||
onclick="setFoulRule(this);" data-toggle="tooltip" title="{{$rule.Description}}">
|
||||
{{$rule.RuleNumber}}{{if $rule.IsTechnical}}<sup>T</sup>{{end}}
|
||||
{{$rule.RuleNumber}}{{if $rule.IsTechnical}}<sup>T</sup>
|
||||
{{else if $rule.IsRankingPoint}}<sup>RP</sup>{{end}}
|
||||
</a>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user